1 #ifndef __SCHEDULING_H__ 
    2 #define __SCHEDULING_H__ 
    6 #include "constraint.h" 
    7 #include "../../data_structures/bm/blockmodel.h" 
    8 #include "../../data_structures/bm/blocksel.h" 
    9 #include "destination.h" 
   23 typedef MLList<delphos::Destination> DestinationList;
 
   28 typedef MLList<delphos::Stock> StockList;
 
   45     vector<Constraint*>  _constrs;
 
   46     unsigned int _ctrs_size;
 
   47     unsigned int _horizon;
 
   48     DestinationList * _dest;
 
   52     double _discount_rate;
 
   61     vector<unsigned int> _ctrs_index;
 
  173     bool RemoveConstraint(
const unsigned int& index);
 
  179     const unsigned int NumConstraints() 
const;
 
  184     const unsigned int GetNumConstraints() 
const;
 
  203     void AddDestination(
const string& destname, 
const string& destvalueattrname);
 
  209     delphos::DestinationList& Destinations();
 
  214     delphos::DestinationList& GetDestinations();
 
  221     void AddStock(
const Stock& stock);
 
  229     void AddStock(
const string & stock_name, 
const string & tname, 
const double & tonnage);
 
  234     delphos::StockList& Stocks();
 
  239     delphos::StockList& GetStocks();
 
  244     const bool IsStock();
 
  251     void SetFixedDiscountRate(
const double discount_rate);
 
  256     double GetFixedDiscountRate() 
const;
 
  265     void SetUpdateFactor(
const unsigned int period, 
const double factor);
 
  270     const double GetUpdateFactor(
const unsigned int period) 
const;  
 
  276     const unsigned int Horizon() 
const;
 
  281     const unsigned int GetHorizon() 
const;
 
  291     virtual void Report();
 
  304     bool IsPCPSP() 
const;
 
  313     void SetPCPSP(
const bool& flag);
 
  315     void ConstraintToFree(
const unsigned int& index);
 
Abstracts a set of blocks (subset of a blockmodel). 
Definition: blocksel.h:33
Defines a scheduling instance to be solved. 
Definition: instance.h:41
Defines a destination or process. 
Definition: destination.h:21
Abstracts a container of blocks as a table with arbitrary number of attributes that can be accessed b...
Definition: blockmodel.h:62
A base class for object associated to a given block model. 
Definition: blockmodel.h:1356
Defines the base class for all constraints. 
Definition: constraint.h:33
Defines a pre-existing stock. 
Definition: stock.h:20