OSDipBlockSolver.h
Go to the documentation of this file.
1 /* $Id: OSDipBlockSolver.h 3038 2009-11-07 11:43:44Z Gassmann $ */
16 #ifndef OSDIPBLOCKSOLVER_H
17 #define OSDIPBLOCKSOLVER_H
18 
19 // --------------------------------------------------------------------- //
20 #include "OSInstance.h"
21 #include "OSResult.h"
22 #include "OSDataStructures.h"
23 #include "OSErrorClass.h"
24 #include <vector>
25 #include <string>
26 #include <map>
27 
28 
29 
30 
31 // --------------------------------------------------------------------- //
39 // --------------------------------------------------------------------- //
41 public:
42 
43 
44 
48  double *m_cost;
49 
54 
58  double m_optVal;
59 
60 
65 
77  virtual void solve(double *cost, std::vector<IndexValuePair*> *solIndexValPair, double *optVal) = 0;
78 
79 
90  virtual void solve(double *cost, std::string *osrl) = 0 ;
91 
92 
98 
103  virtual ~OSDipBlockSolver() = 0;
104 
105 
106  //
107 };//end class OSDipBlockSolver
108 
109 
110 
111 #endif
double * m_cost
m_cost is the objective function of (reduced) coefficients
int m_whichBlock
m_whichBlock is the index of the subproblem we are working with
double m_optVal
m_optVal is the optimal objective function value of the block optimization problem ...
virtual void solve(double *cost, std::vector< IndexValuePair * > *solIndexValPair, double *optVal)=0
OSDipBlockSolver()
Default Constructor.
virtual ~OSDipBlockSolver()=0
Default destructor.
SparseVector * m_sparseVec
m_sparseVec is the column found by solving the block optimization problem
a sparse vector data structure
Definition: OSGeneral.h:122