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

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

#include <fractional_scheduler.h>

Inheritance diagram for delphos::FractionalScheduler:
Inheritance graph
Collaboration diagram for delphos::FractionalScheduler:
Collaboration graph

Public Member Functions

 FractionalScheduler (delphos::SchedulingInstance &si)
 Creates a new scheduler. More...
 
virtual ~FractionalScheduler ()
 The destructor.
 
delphos::SchedulingInstanceGetInstance ()
 Returns the associated scheduling instance.
 
virtual bool Run ()
 Solves the scheduling instance. Returns true on success. More...
 
virtual const
delphos::FractionalSchedule
GetFractionalSchedule ()
 Returns a fractional schedule.
 
virtual const bool Optimized ()
 Returns true only if the scheduler has run succesfully.
 
virtual void SetLogFile (const string &name)
 Set the use of the log with given file name. More...
 
virtual void ComputeExpectedTime (const string column)
 Compute the expected schedule time for each block. This implementation is a dummy version that do nothing.
 
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 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::FractionalScheduler::FractionalScheduler ( delphos::SchedulingInstance si)

Creates a new scheduler.

Parameters
siThe scheduling instance to be solved.

Member Function Documentation

const double delphos::FractionalScheduler::GetDual ( const string &  cname)
virtual

Return the dual value of given constraint.

Parameters
cnameThe name of the constraint of which the dual value is returned. This implementation is a dummy version that always returns 0.

Reimplemented in delphos::GurobiFractionalScheduler, and delphos::CBCFractionalScheduler.

bool delphos::FractionalScheduler::Run ( )
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::BZ, delphos::CBCFractionalScheduler, delphos::GurobiFractionalScheduler, delphos::GurobiBZ, and delphos::CBCBZ.

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

Set 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::CBCFractionalScheduler, delphos::BZ, and delphos::GurobiFractionalScheduler.

void delphos::FractionalScheduler::SetLPMethod ( const int &  lpcode)

Set LP method.

Parameters
lpcodeThe code of lp method(simplex,dual simplex,barrier,...)

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