![]() |
MineLink
|
Dummy class that define required methods for a solver of a scheduling instance. More...
#include <scheduler.h>
Public Member Functions | |
Scheduler (delphos::SchedulingInstance &si) | |
Creates a new scheduler. More... | |
virtual | ~Scheduler () |
The destructor. | |
delphos::SchedulingInstance & | GetInstance () |
Returns the associated scheduling instance. | |
virtual bool | Run () |
Solves the scheduling instance. Returns true on success. More... | |
virtual const bool | Optimized () |
Returns true only if the scheduler has run succesfully. This implementation is a dummy version that always returns false. | |
virtual void | SetLogFile (const string &name) |
Sets the use of the log with given file name. More... | |
virtual void | SetGap (const float &gap) |
Sets the desired gap for the optimization. More... | |
const bool | IsStock () |
Returns true only if the inner scheduling instance has stoks. | |
![]() | |
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... | |
Static Public Attributes | |
static const string | CBC_MIPScheduler =string("CBC_MIPScheduler") |
Name of the CBC MIP scheduler. | |
static const string | CBC_SlidingTimeWindowHeuristic =string("CBC_SlidingTimeWindowHeuristic") |
Name of the CBC implemtation of the sliding time window heuristic. | |
static const string | GUROBI_MIPScheduler =string("GUROBI_MIPScheduler") |
Name of the gurobi MIP scheduler. | |
static const string | GUROBI_SlidingTimeWindowHeuristic =string("GUROBI_SlidingTimeWindowHeuristic") |
Name of the gurobi implemtation of the sliding time window heuristic. | |
Dummy class that define required methods for a 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::Scheduler::Scheduler | ( | delphos::SchedulingInstance & | si | ) |
Creates a new scheduler.
si | The scheduling instance to be solved. |
|
virtual |
Solves the scheduling instance. Returns true on success.
In this class, it is simply a dummy method that returns always false.
Reimplemented in delphos::NewmanHeuristic, delphos::SlidingTimeWindowHeuristicRelaxed, delphos::BZHeuristic, delphos::SlidingTimeWindowHeuristic, delphos::TopoHeuristic, delphos::GurobiMIPScheduler, delphos::HReb, delphos::CBCMIPScheduler, delphos::MIPScheduler, and delphos::SchedulingHeuristic.
|
virtual |
Sets the desired gap for the optimization.
gap | The desired gap. This implementation is a dummy version that do nothing. |
Reimplemented in delphos::SlidingTimeWindowHeuristic, delphos::MIPScheduler, and delphos::HReb.
|
virtual |
Sets the use of the log with given file name.
name | The name of the log file. This implementation is a dummy version that do nothing. |
Reimplemented in delphos::MIPScheduler, and delphos::SchedulingHeuristic.