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

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

#include <bz.h>

Inheritance diagram for delphos::BZ:
Inheritance graph
Collaboration diagram for delphos::BZ:
Collaboration graph

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 SchedulingInstanceGetInstance ()
 Returns the scheduling instance.
 
- Public Member Functions inherited from delphos::FractionalScheduler
 FractionalScheduler (delphos::SchedulingInstance &si)
 Creates a new scheduler. More...
 
virtual ~FractionalScheduler ()
 The destructor.
 
delphos::SchedulingInstanceGetInstance ()
 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...
 
- 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

delphos::BZ::BZ ( delphos::SchedulingInstance si,
delphos::FinalPitSolver fps = NULL 
)

Creates a new scheduler.

Parameters
siThe scheduling instance to be solved.

Member Function Documentation

bool delphos::BZ::ExpectedTimeToTextFile ( const char *  exptime_file) const
virtual

Writes the expected times in given file.

Parameters
exptime_fileThe name of the file in which the expected times are written.
bool delphos::BZ::RelaxedSolToTextFile ( const char *  relsol_file,
const char *  stocks_file = "" 
)
virtual

Writes the relaxed solution in given text files.

Parameters
relsol_fileThe file in which the relaxed solution for the blocks is written.
stocks_fileThe file in which the relaxed solution for the stocks is written.
bool delphos::BZ::SetExpectedTime ( const string &  column)
virtual

Sets the expected times from a block model attribute with given name.

Parameters
columnThe column attribute name from which the expected times are extracted.
void delphos::BZ::SetLogFile ( const string &  name)
virtual

Set the use of the log with given file name.

Parameters
nameThe name of the log file.

Reimplemented from delphos::FractionalScheduler.

void delphos::BZ::StoreExpectedTimeAsAttribute ( const string  column)
virtual

Stores the expected times for each block in given column in the block model.

Parameters
columnThe name of the column in which the expected times will be stored.

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