1 #ifndef __FRACTIONALSCHEDULE_H__
2 #define __FRACTIONALSCHEDULE_H__
9 #include "../../../data_structures/bm/blockmodel.h"
14 class SchedulingInstance;
24 vector< pair<unsigned long,double> > _assig;
25 vector<double> *_stocks;
55 void SetAssignation(
const delphos::BlockIndexType& index,
const unsigned int& period,
const unsigned int& destination,
const double& val);
64 void SetAssignation(
const delphos::Coordinates& c,
const unsigned int& period,
const unsigned int& destination,
const double& val);
76 void SetAssignation(
const double& x,
const double& y,
const double& z,
const unsigned int& period,
const unsigned int& destination,
const double& val);
86 void GetAssignation(
const unsigned long& pos,delphos::BlockIndexType& index,
unsigned int& period,
unsigned int& destination,
double& val)
const;
91 const unsigned long Size()
const;
99 void SetStockValue (
const delphos::BlockIndexType& index,
const double& value)
const;
106 double const GetStockValue (
const delphos::BlockIndexType& index )
const;
111 const unsigned int StockVarListSize()
const;
124 bool FractionalScheduleToTextFile(
const char* schedule_file)
const;
132 bool StocksToTextFile(
const char* stocks_file)
const;
Abstracts a set of blocks (subset of a blockmodel).
Definition: blocksel.h:33
An utility class to abstract coordinates so they can be used as map and set keys by means of string c...
Definition: coords.h:20
Defines a scheduling instance to be solved.
Definition: instance.h:41
Defines a fractional scheduling of blocks.
Definition: fractional_schedule.h:22
A base class for object associated to a given block model.
Definition: blockmodel.h:1356