COIN-OR::LEMON - Graph Library

Changeset 1460:7c58aabb9eea in lemon-0.x for lemon/lp_base.h


Ignore:
Timestamp:
06/09/05 17:03:58 (19 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1940
Message:

I could not check, because: aclocal-1.7: command not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r1458 r1460  
    119119    };
    120120     
    121     ///\e
     121      ///\e
    122122    enum SolutionStatus {
    123123      ///Feasible solution has'n been found (but may exist).
     
    138138      INFINITE = 4
    139139    };
     140
     141      ///\e The type of the investigated LP problem
     142      enum Problemtypes {
     143          ///Primal-dual feasible
     144          PRIMAL_DUAL_FEASIBLE = 0,
     145          ///Primal feasible dual infeasible
     146          PRIMAL_FEASIBLE_DUAL_INFEASIBLE = 1,
     147          ///Primal infeasible dual feasible
     148          PRIMAL_INFEASIBLE_DUAL_FEASIBLE = 2,
     149          ///Primal-dual infeasible
     150          PRIMAL_DUAL_INFEASIBLE = 3,
     151          ///Could not determine so far
     152          UNKNOWN = 4
     153      };
    140154     
    141155    ///The floating point type used by the solver
     
    564578    virtual Value _getPrimalValue() = 0;
    565579    virtual SolutionStatus _getPrimalStatus() = 0;
     580    virtual SolutionStatus _getDualStatus() = 0;
     581    ///\todo This could be implemented here, too, using _getPrimalStatus() and
     582    ///_getDualStatus()
     583    virtual ProblemTypes _getProblemType() = 0;
     584
    566585    virtual void _setMax() = 0;
    567586    virtual void _setMin() = 0;
     
    931950    ///@{
    932951
    933     ///\e
     952    /// The status of the primal problem (the original LP problem)
    934953    SolutionStatus primalStatus() {
    935954      return _getPrimalStatus();
     955    }
     956
     957    /// The status of the dual (of the original LP) problem
     958    SolutionStatus dualStatus() {
     959      return _getDualStatus();
     960    }
     961
     962    ///The type of the original LP problem
     963    Problemtypes problemType() {
     964      return _getProblemType();
    936965    }
    937966
Note: See TracChangeset for help on using the changeset viewer.