![]() |
MineLink
|
Dummy class that define required methods for a Bienstock Zuckerberg solver of a scheduling instance. More...
#include <bz.h>
Public Member Functions | |
BZ (delphos::SchedulingInstance &si, delphos::FinalPitSolver *fps=NULL) | |
Creates a new scheduler. More... | |
virtual | ~BZ () |
The destructor. | |
virtual bool | Run () |
Creates the model and run the BZ algorithm. This implementation is a dummy version that always return false. | |
virtual double * | GetRelaxedSol () |
Returns the relaxed solution for the real variables. | |
virtual double * | GetRelaxedDecisionSol () |
Returns the relaxed solution for the decision variables. | |
virtual bool | RelaxedSolToTextFile (const char *relsol_file, const char *stocks_file="") |
Writes the relaxed solution in given text files. More... | |
virtual bool | CheckRelaxedSol () |
Check If the relaxed solution respect the constraints defined in the scheduling instance. | |
vector< double > | GetExpectedTime () const |
Returns the expected times for the blocks. | |
virtual bool | SetExpectedTime (const string &column) |
Sets the expected times from a block model attribute with given name. More... | |
virtual void | StoreExpectedTimeAsAttribute (const string column) |
Stores the expected times for each block in given column in the block model. More... | |
virtual bool | ExpectedTimeToTextFile (const char *exptime_file) const |
Writes the expected times in given file. More... | |
virtual void | SetLogFile (const string &name) |
Set the use of the log with given file name. More... | |
double | GetRelaxedObj () |
Get the relaxed objective. | |
unsigned int | GetNBIterationsBZ () |
Return the number of iterations of BZ run. | |
const map< string, double > & | GetBZDuals () |
Returns the dual values encountered by BZ. | |
bool | IsFeasible () |
Returns true only if BZ run correctly. | |
const bool | Optimized () |
Returns true only if BZ run correctly. | |
virtual SchedulingInstance & | GetInstance () |
Returns the scheduling instance. | |
![]() | |
FractionalScheduler (delphos::SchedulingInstance &si) | |
Creates a new scheduler. More... | |
virtual | ~FractionalScheduler () |
The destructor. | |
delphos::SchedulingInstance & | GetInstance () |
Returns the associated scheduling instance. | |
virtual const delphos::FractionalSchedule & | GetFractionalSchedule () |
Returns a fractional schedule. | |
void | SetLPMethod (const int &lpcode) |
Set LP method. More... | |
virtual const double | GetDual (const string &cname) |
Return the dual value of given constraint. More... | |
![]() | |
BlockModelEntity (delphos::BlockModel &bm) | |
Creates a new block instance associated to a given block model. More... | |
delphos::BlockModel & | GetBlockModel () |
Retrieves the block model to which the entity is associated. More... | |
const delphos::BlockModel & | GetBlockModel () const |
Retrieves the block model to which the entity is associated. More... | |
Dummy class that define required methods for a Bienstock Zuckerberg solver of a scheduling instance.
This class defines the required methods to be implemented by a class that is able to solve a scheduling instance.
delphos::BZ::BZ | ( | delphos::SchedulingInstance & | si, |
delphos::FinalPitSolver * | fps = NULL |
||
) |
Creates a new scheduler.
si | The scheduling instance to be solved. |
|
virtual |
Writes the expected times in given file.
exptime_file | The name of the file in which the expected times are written. |
|
virtual |
Writes the relaxed solution in given text files.
relsol_file | The file in which the relaxed solution for the blocks is written. |
stocks_file | The file in which the relaxed solution for the stocks is written. |
|
virtual |
Sets the expected times from a block model attribute with given name.
column | The column attribute name from which the expected times are extracted. |
|
virtual |
Set the use of the log with given file name.
name | The name of the log file. |
Reimplemented from delphos::FractionalScheduler.
|
virtual |
Stores the expected times for each block in given column in the block model.
column | The name of the column in which the expected times will be stored. |