MineLink
 All Data Structures Functions Variables Pages
cbc_bz.h
1 #ifndef __CBCBZ_H__
2 #define __CBCBZ_H__
3 
4 #include "bz.h"
5 #include "cbc_model.h"
6 
7 
8 
9 namespace delphos{
10 
15 class CBCBZ: public BZ {
16 private:
17  bool SetFractionalSchedule();
18  double _prec;
19 public:
27  CBCBZ(delphos::SchedulingInstance&,const double& precision=0.00001,delphos::FinalPitSolver* fps=NULL);
28  //PseudoFlowScheduler(delphos::SchedulingInstance& si,delphos::FinalPitSolver* fps, map<BlockIndexType,double>& assigned_vars);
29 
33  virtual ~CBCBZ();
34 
35  //void SetLPAsPitSolver();
36 
37  /*static const int MAXIMIZE=-1;
38  static const int MINIMIZE=1;
39  static const int FEASIBILITY=1;
40  static const int OPTIMALITY=2;
41  static const int BESTBOUND=3;
42  static const int BALANCED=0;*/
43 
47  bool Run();
48 
55  void SetRelaxedSol(CBCModel* gmodel,const vector<BlockSelection>& partition,const bool& bComputeExpectedTime);
56 
61 };
62 }
63 #endif
Dummy class that define required methods for a Bienstock Zuckerberg solver of a scheduling instance...
Definition: bz.h:14
A fractional Scheduler class based on Bienstock-Zuckerberg algorithm and CBC for solving its sub prob...
Definition: cbc_bz.h:15
Defines a scheduling instance to be solved.
Definition: instance.h:41
CBCBZ(delphos::SchedulingInstance &, const double &precision=0.00001, delphos::FinalPitSolver *fps=NULL)
Creates a fractional Scheduler class based on Bienstock-Zuckerberg algorithm and CBC for solving its ...
Definition: cbc_bz.cpp:16
Defines a fractional scheduling of blocks.
Definition: fractional_schedule.h:22
A dummy class that specifies the methods of an algorithm that can solve a final pit instance...
Definition: fp.h:57
bool Run()
Creates the model and run the BZ algorithm.
Definition: cbc_bz.cpp:217
void SetRelaxedSol(CBCModel *gmodel, const vector< BlockSelection > &partition, const bool &bComputeExpectedTime)
Set the relaxed solution.
Definition: cbc_bz.cpp:2239
const delphos::FractionalSchedule & GetFractionalSchedule()
Returns the result fractional schedule.
Definition: cbc_bz.cpp:2582
virtual ~CBCBZ()
The destructor.
Definition: cbc_bz.cpp:2578