src/work/athos/lp/lp_solver_skeleton.h
changeset 1275 16980bf77bd3
parent 1263 a490938ad0aa
child 1293 8ede2a6b2594
equal deleted inserted replaced
1:56545e73829a 2:371a9a252bc0
    24 ///\brief A skeleton file to implement LP solver interfaces
    24 ///\brief A skeleton file to implement LP solver interfaces
    25 namespace lemon {
    25 namespace lemon {
    26   
    26   
    27   ///A skeleton class to implement LP solver interfaces
    27   ///A skeleton class to implement LP solver interfaces
    28   class LpSolverSkeleton :public LpSolverBase {
    28   class LpSolverSkeleton :public LpSolverBase {
    29 
    29     int col_num,row_num;
       
    30     
    30   protected:
    31   protected:
    31     virtual int _addCol();
    32     virtual int _addCol();
    32     virtual int _addRow();
    33     virtual int _addRow();
    33     virtual void _setRowCoeffs(int i, 
    34     virtual void _setRowCoeffs(int i, 
    34 			       int length,
    35 			       int length,
    43     virtual void _setRowLowerBound(int i, Value value);
    44     virtual void _setRowLowerBound(int i, Value value);
    44     virtual void _setRowUpperBound(int i, Value value);
    45     virtual void _setRowUpperBound(int i, Value value);
    45     virtual void _setObjCoeff(int i, Value obj_coef);
    46     virtual void _setObjCoeff(int i, Value obj_coef);
    46     virtual SolutionType _solve();
    47     virtual SolutionType _solve();
    47     virtual Value _getSolution(int i);
    48     virtual Value _getSolution(int i);
    48 
    49   public:
       
    50     LpSolverSkeleton() : LpSolverBase(), col_num(0), row_num(0) {}
    49   };  
    51   };  
    50 
    52 
    51 } //namespace lemon
    53 } //namespace lemon
    52 
    54 
    53 #endif // LEMON_LP_SOLVER_SKELETON
    55 #endif // LEMON_LP_SOLVER_SKELETON