COIN-OR::LEMON - Graph Library

Changeset 1321:bc3a4c498eb2 in lemon-0.x for src/lemon/lp_glpk.h


Ignore:
Timestamp:
04/08/05 08:33:11 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1760
Message:

No output messages by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/lp_glpk.h

    r1312 r1321  
    3333  /// This class implements a lemon wrapper for GLPK.
    3434  class LpGlpk : public LpSolverBase {
    35 
     35  protected:
     36    LPX* lp;
     37   
    3638  public:
    37 
     39   
    3840    typedef LpSolverBase Parent;
    3941   
    40     /// \e
    41     LPX* lp;
    42 
    43     /// \e
    44     LpGlpk() : Parent(),
    45                         lp(lpx_create_prob()) {
    46       lpx_set_int_parm(lp, LPX_K_DUAL, 1);
    47     }
    48     /// \e
    49     ~LpGlpk() {
    50       lpx_delete_prob(lp);
    51     }
    52 
     42    LpGlpk();
     43    ~LpGlpk();
     44   
    5345  protected:
    5446    virtual int _addCol();
     
    6961    ///\e
    7062   
    71     ///\bug Unimplemented
     63    ///\todo It should be clarified
    7264    ///
    7365    virtual SolveExitStatus _solve();
    74     ///\e
    75    
    76     ///\bug Unimplemented
    77     ///
    7866    virtual Value _getPrimal(int i);
    79     ///\e
    80    
    81     ///\bug Unimplemented
    82     ///
    8367    virtual Value _getPrimalValue();
    8468    ///\e
    8569   
    86     ///\bug Unimplemented
     70    ///\todo It should be clarified
    8771    ///
    8872    virtual SolutionStatus _getPrimalStatus();
     73    virtual void _setMax();
     74    virtual void _setMin();
    8975
    90     ///\e
     76  public:
     77    ///Set the verbosity of the messages
     78
     79    ///\param m is the level of the messages output by the solver routines.
     80    ///The possible values are:
     81    ///- 0 --- no output (default value)
     82    ///- 1 --- error messages only
     83    ///- 2 --- normal output
     84    ///- 3 --- full output (includes informational messages)
     85    void messageLevel(int m);
    9186   
    92     ///\bug Unimplemented
    93     ///
    94     virtual void _setMax();
    95     ///\e
    96    
    97     ///\bug Unimplemented
    98     ///
    99     virtual void _setMin();
    100  
    10187  };
    10288} //END OF NAMESPACE LEMON
Note: See TracChangeset for help on using the changeset viewer.