COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r540 r584  
    5353    ///Possible outcomes of an LP solving procedure
    5454    enum SolveExitStatus {
    55       ///This means that the problem has been successfully solved: either
     55      /// = 0. It means that the problem has been successfully solved: either
    5656      ///an optimal solution has been found or infeasibility/unboundedness
    5757      ///has been proved.
    5858      SOLVED = 0,
    59       ///Any other case (including the case when some user specified
    60       ///limit has been exceeded)
     59      /// = 1. Any other case (including the case when some user specified
     60      ///limit has been exceeded).
    6161      UNSOLVED = 1
    6262    };
     
    6969      MAX
    7070    };
     71
     72    ///Enum for \c messageLevel() parameter
     73    enum MessageLevel {
     74      /// No output (default value).
     75      MESSAGE_NOTHING,
     76      /// Error messages only.
     77      MESSAGE_ERROR,
     78      /// Warnings.
     79      MESSAGE_WARNING,
     80      /// Normal output.
     81      MESSAGE_NORMAL,
     82      /// Verbose output.
     83      MESSAGE_VERBOSE
     84    };
     85   
    7186
    7287    ///The floating point type used by the solver
     
    974989    virtual const char* _solverName() const = 0;
    975990
     991    virtual void _messageLevel(MessageLevel level) = 0;
     992
    976993    //Own protected stuff
    977994
     
    9891006    const char* solverName() const {return _solverName();}
    9901007
    991     ///\name Build up and modify the LP
     1008    ///\name Build Up and Modify the LP
    9921009
    9931010    ///@{
     
    15281545    void clear() { _clear(); }
    15291546
     1547    /// Sets the message level of the solver
     1548    void messageLevel(MessageLevel level) { _messageLevel(level); }
     1549
    15301550    ///@}
    15311551
     
    17691789    /// The problem types for primal and dual problems
    17701790    enum ProblemType {
    1771       ///Feasible solution hasn't been found (but may exist).
     1791      /// = 0. Feasible solution hasn't been found (but may exist).
    17721792      UNDEFINED = 0,
    1773       ///The problem has no feasible solution
     1793      /// = 1. The problem has no feasible solution.
    17741794      INFEASIBLE = 1,
    1775       ///Feasible solution found
     1795      /// = 2. Feasible solution found.
    17761796      FEASIBLE = 2,
    1777       ///Optimal solution exists and found
     1797      /// = 3. Optimal solution exists and found.
    17781798      OPTIMAL = 3,
    1779       ///The cost function is unbounded
     1799      /// = 4. The cost function is unbounded.
    17801800      UNBOUNDED = 4
    17811801    };
     
    18331853    ///@}
    18341854
    1835     ///\name Obtain the solution
     1855    ///\name Obtain the Solution
    18361856
    18371857    ///@{
     
    19551975    /// The problem types for MIP problems
    19561976    enum ProblemType {
    1957       ///Feasible solution hasn't been found (but may exist).
     1977      /// = 0. Feasible solution hasn't been found (but may exist).
    19581978      UNDEFINED = 0,
    1959       ///The problem has no feasible solution
     1979      /// = 1. The problem has no feasible solution.
    19601980      INFEASIBLE = 1,
    1961       ///Feasible solution found
     1981      /// = 2. Feasible solution found.
    19621982      FEASIBLE = 2,
    1963       ///Optimal solution exists and found
     1983      /// = 3. Optimal solution exists and found.
    19641984      OPTIMAL = 3,
    1965       ///The cost function is unbounded
    1966       ///
    1967       ///The Mip or at least the relaxed problem is unbounded
     1985      /// = 4. The cost function is unbounded.
     1986      ///The Mip or at least the relaxed problem is unbounded.
    19681987      UNBOUNDED = 4
    19691988    };
     
    19872006    ///@}
    19882007
    1989     ///\name Setting column type
     2008    ///\name Set Column Type
    19902009    ///@{
    19912010
    19922011    ///Possible variable (column) types (e.g. real, integer, binary etc.)
    19932012    enum ColTypes {
    1994       ///Continuous variable (default)
     2013      /// = 0. Continuous variable (default).
    19952014      REAL = 0,
    1996       ///Integer variable
     2015      /// = 1. Integer variable.
    19972016      INTEGER = 1
    19982017    };
     
    20152034    ///@}
    20162035
    2017     ///\name Obtain the solution
     2036    ///\name Obtain the Solution
    20182037
    20192038    ///@{
Note: See TracChangeset for help on using the changeset viewer.