# Changeset 1294:2dec219d9ca2 in lemon-0.x

Ignore:
Timestamp:
04/03/05 12:20:49 (15 years ago)
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1727
Message:

Documentation of abstract functions is in lp_solver_skeleton.h

Location:
src/work/athos/lp
Files:
5 edited

Unmodified
Removed
• ## src/work/athos/lp/lp_base.h

 r1293 _FixId cols; /// \e virtual int _addCol() = 0; /// \e virtual int _addRow() = 0; /// \e /// \warning Arrays are indexed from 1 (datum at index 0 is ignored) /// virtual void _setRowCoeffs(int i, int length, int  const * indices, Value  const * values ) = 0; /// \e /// \warning Arrays are indexed from 1 (datum at index 0 is ignored) /// virtual void _setColCoeffs(int i, int length, int  const * indices, Value  const * values ) = 0; /// \e /// The lower bound of a variable (column) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or -\ref INF. virtual void _setColLowerBound(int i, Value value) = 0; /// \e /// The upper bound of a variable (column) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or \ref INF. virtual void _setColUpperBound(int i, Value value) = 0; /// \e /// The lower bound of a linear expression (row) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or -\ref INF. virtual void _setRowLowerBound(int i, Value value) = 0; /// \e /// The upper bound of a linear expression (row) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or \ref INF. virtual void _setRowUpperBound(int i, Value value) = 0; /// \e virtual void _setObjCoeff(int i, Value obj_coef) = 0; ///\e ///\bug Wrong interface /// virtual SolutionStatus _solve() = 0; ///\e ///\bug Wrong interface /// virtual Value _getPrimal(int i) = 0; ///\e ///\bug unimplemented!!!! virtual SolutionType _getPrimalType() = 0; void clearObj() {} public: virtual ~LpSolverBase() {} ///\name Building up and modification of the LP ///\name Build up and modify of the LP ///@{ Col addCol() { Col c; c.id=cols.insert(_addCol()); return c;} ///\brief Fill the elements of a container with newly created columns ///(i.e a new variables) ///\brief Adds several new columns ///(i.e a variables) at once /// ///This magic function takes a container as its argument ///\name Solving the LP ///\name Solve the LP ///@{ ///@} ///\name Obtaining the solution LP ///\name Obtain the solution ///@{ ///\e SolutionType primalType() { return _getPrimalType(); } ///\e
• ## src/work/athos/lp/lp_glpk.cc

 r1293 } LpGlpk::SolutionType LpGlpk::_getPrimalType() { return OPTIMAL; }
• ## src/work/athos/lp/lp_glpk.h

 r1293 /// virtual Value _getPrimal(int i); ///\e ///\bug Unimplemented /// virtual SolutionType _getPrimalType(); };
• ## src/work/athos/lp/lp_solver_skeleton.cc

 r1293 } LpSolverSkeleton::SolutionType LpSolverSkeleton::_getPrimalType() { return OPTIMAL; } } //namespace lemon
• ## src/work/athos/lp/lp_solver_skeleton.h

 r1293 protected: /// \e virtual int _addCol(); /// \e virtual int _addRow(); /// \e /// \warning Arrays are indexed from 1 (datum at index 0 is ignored) /// virtual void _setRowCoeffs(int i, int length, int  const * indices, Value  const * values ); /// \e /// \warning Arrays are indexed from 1 (datum at index 0 is ignored) /// virtual void _setColCoeffs(int i, int length, int  const * indices, Value  const * values); Value  const * values ); /// \e /// The lower bound of a variable (column) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or -\ref INF. virtual void _setColLowerBound(int i, Value value); /// \e /// The upper bound of a variable (column) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or \ref INF. virtual void _setColUpperBound(int i, Value value); /// \e /// The lower bound of a linear expression (row) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or -\ref INF. virtual void _setRowLowerBound(int i, Value value); /// \e /// The upper bound of a linear expression (row) have to be given by an /// extended number of type Value, i.e. a finite number of type /// Value or \ref INF. virtual void _setRowUpperBound(int i, Value value); /// \e virtual void _setObjCoeff(int i, Value obj_coef); ///\e ///\bug Wrong interface /// virtual SolutionStatus _solve(); ///\e ///\bug Wrong interface /// virtual Value _getPrimal(int i); ///\e ///\bug Wrong interface /// virtual SolutionType _getPrimalType(); public: LpSolverSkeleton() : LpSolverBase(), col_num(0), row_num(0) {}
Note: See TracChangeset for help on using the changeset viewer.