lemon/lp_cplex.h
changeset 2362 eb37b9774ef6
parent 2312 07e46cbb7d85
child 2364 3a5e67bd42d2
equal deleted inserted replaced
8:5ce55e762f4e 9:1d3c825b75f0
    53 
    53 
    54   protected:
    54   protected:
    55     virtual LpSolverBase &_newLp();
    55     virtual LpSolverBase &_newLp();
    56     virtual LpSolverBase &_copyLp();
    56     virtual LpSolverBase &_copyLp();
    57 
    57 
       
    58 
    58     virtual int _addCol();
    59     virtual int _addCol();
    59     virtual int _addRow();
    60     virtual int _addRow();
    60     virtual void _eraseCol(int i);
    61     virtual void _eraseCol(int i);
    61     virtual void _eraseRow(int i);
    62     virtual void _eraseRow(int i);
    62     virtual void _getColName(int col,       std::string & name);
    63     virtual void _getColName(int col,       std::string & name);
    63     virtual void _setColName(int col, const std::string & name);
    64     virtual void _setColName(int col, const std::string & name);
    64     virtual void _setRowCoeffs(int i, LpRowIterator b, LpRowIterator e);
    65     virtual void _setRowCoeffs(int i, LpRowIterator b, LpRowIterator e);
    65     virtual void _setColCoeffs(int i, LpColIterator b, LpColIterator e);
    66     virtual void _setColCoeffs(int i, LpColIterator b, LpColIterator e);
    66     virtual void _setCoeff(int row, int col, Value value);
    67     virtual void _setCoeff(int row, int col, Value value);
       
    68     virtual Value _getCoeff(int row, int col);
       
    69 
    67     virtual void _setColLowerBound(int i, Value value);
    70     virtual void _setColLowerBound(int i, Value value);
       
    71     virtual Value _getColLowerBound(int i);
    68     virtual void _setColUpperBound(int i, Value value);
    72     virtual void _setColUpperBound(int i, Value value);
       
    73     virtual Value _getColUpperBound(int i);
       
    74 
    69 //     virtual void _setRowLowerBound(int i, Value value);
    75 //     virtual void _setRowLowerBound(int i, Value value);
    70 //     virtual void _setRowUpperBound(int i, Value value);
    76 //     virtual void _setRowUpperBound(int i, Value value);
    71     virtual void _setRowBounds(int i, Value lower, Value upper);
    77     virtual void _setRowBounds(int i, Value lower, Value upper);
       
    78     virtual void _getRowBounds(int i, Value &lb, Value &ub);
    72     virtual void _setObjCoeff(int i, Value obj_coef);
    79     virtual void _setObjCoeff(int i, Value obj_coef);
       
    80     virtual Value _getObjCoeff(int i);
    73     virtual void _clearObj();
    81     virtual void _clearObj();
    74     ///\e
    82 
    75     
    83     
    76     virtual SolveExitStatus _solve();
    84     virtual SolveExitStatus _solve();
    77     virtual Value _getPrimal(int i);
    85     virtual Value _getPrimal(int i);
    78     virtual Value _getDual(int i);
    86     virtual Value _getDual(int i);
    79     virtual Value _getPrimalValue();
    87     virtual Value _getPrimalValue();
    85 
    93 
    86     
    94     
    87     virtual void _setMax();
    95     virtual void _setMax();
    88     virtual void _setMin();
    96     virtual void _setMin();
    89 
    97 
       
    98     virtual bool _isMax();
       
    99 
    90   };
   100   };
    91 } //END OF NAMESPACE LEMON
   101 } //END OF NAMESPACE LEMON
    92 
   102 
    93 #endif //LEMON_LP_CPLEX_H
   103 #endif //LEMON_LP_CPLEX_H
    94 
   104