MineLink
 All Data Structures Functions Variables Pages
delphos::Scheduler Class Reference

Dummy class that define required methods for a solver of a scheduling instance. More...

#include <scheduler.h>

Inheritance diagram for delphos::Scheduler:
Inheritance graph
Collaboration diagram for delphos::Scheduler:
Collaboration graph

Public Member Functions

 Scheduler (delphos::SchedulingInstance &si)
 Creates a new scheduler. More...
 
virtual ~Scheduler ()
 The destructor.
 
delphos::SchedulingInstanceGetInstance ()
 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.
 
- Public Member Functions inherited from delphos::BlockModelEntity
 BlockModelEntity (delphos::BlockModel &bm)
 Creates a new block instance associated to a given block model. More...
 
delphos::BlockModelGetBlockModel ()
 Retrieves the block model to which the entity is associated. More...
 
const delphos::BlockModelGetBlockModel () 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

delphos::Scheduler::Scheduler ( delphos::SchedulingInstance si)

Creates a new scheduler.

Parameters
siThe scheduling instance to be solved.

Member Function Documentation

bool delphos::Scheduler::Run ( )
virtual
void delphos::Scheduler::SetGap ( const float &  gap)
virtual

Sets the desired gap for the optimization.

Parameters
gapThe desired gap. This implementation is a dummy version that do nothing.

Reimplemented in delphos::SlidingTimeWindowHeuristic, delphos::MIPScheduler, and delphos::HReb.

void delphos::Scheduler::SetLogFile ( const string &  name)
virtual

Sets the use of the log with given file name.

Parameters
nameThe name of the log file. This implementation is a dummy version that do nothing.

Reimplemented in delphos::MIPScheduler, and delphos::SchedulingHeuristic.


The documentation for this class was generated from the following files: