src/lemon/lp_glpk.h
changeset 1321 bc3a4c498eb2
parent 1312 48f9299b390d
child 1326 85f1c483279e
     1.1 --- a/src/lemon/lp_glpk.h	Fri Apr 08 05:36:16 2005 +0000
     1.2 +++ b/src/lemon/lp_glpk.h	Fri Apr 08 06:33:11 2005 +0000
     1.3 @@ -32,24 +32,16 @@
     1.4    /// 
     1.5    /// This class implements a lemon wrapper for GLPK.
     1.6    class LpGlpk : public LpSolverBase {
     1.7 -
     1.8 +  protected:
     1.9 +    LPX* lp;
    1.10 +    
    1.11    public:
    1.12 -
    1.13 +    
    1.14      typedef LpSolverBase Parent;
    1.15      
    1.16 -    /// \e
    1.17 -    LPX* lp;
    1.18 -
    1.19 -    /// \e
    1.20 -    LpGlpk() : Parent(), 
    1.21 -			lp(lpx_create_prob()) {
    1.22 -      lpx_set_int_parm(lp, LPX_K_DUAL, 1);
    1.23 -    }
    1.24 -    /// \e
    1.25 -    ~LpGlpk() {
    1.26 -      lpx_delete_prob(lp);
    1.27 -    }
    1.28 -
    1.29 +    LpGlpk();
    1.30 +    ~LpGlpk();
    1.31 +    
    1.32    protected:
    1.33      virtual int _addCol();
    1.34      virtual int _addRow();
    1.35 @@ -68,36 +60,30 @@
    1.36      virtual void _setObjCoeff(int i, Value obj_coef);
    1.37      ///\e
    1.38      
    1.39 -    ///\bug Unimplemented
    1.40 +    ///\todo It should be clarified
    1.41      ///
    1.42      virtual SolveExitStatus _solve();
    1.43 -    ///\e
    1.44 -    
    1.45 -    ///\bug Unimplemented
    1.46 -    ///
    1.47      virtual Value _getPrimal(int i);
    1.48 -    ///\e
    1.49 -    
    1.50 -    ///\bug Unimplemented
    1.51 -    ///
    1.52      virtual Value _getPrimalValue();
    1.53      ///\e
    1.54      
    1.55 -    ///\bug Unimplemented
    1.56 +    ///\todo It should be clarified
    1.57      ///
    1.58      virtual SolutionStatus _getPrimalStatus();
    1.59 +    virtual void _setMax();
    1.60 +    virtual void _setMin();
    1.61  
    1.62 -    ///\e
    1.63 +  public:
    1.64 +    ///Set the verbosity of the messages
    1.65 +
    1.66 +    ///\param m is the level of the messages output by the solver routines.
    1.67 +    ///The possible values are:
    1.68 +    ///- 0 --- no output (default value)
    1.69 +    ///- 1 --- error messages only
    1.70 +    ///- 2 --- normal output
    1.71 +    ///- 3 --- full output (includes informational messages)
    1.72 +    void messageLevel(int m);
    1.73      
    1.74 -    ///\bug Unimplemented
    1.75 -    ///
    1.76 -    virtual void _setMax();
    1.77 -    ///\e
    1.78 -    
    1.79 -    ///\bug Unimplemented
    1.80 -    ///
    1.81 -    virtual void _setMin();
    1.82 -  
    1.83    };
    1.84  } //END OF NAMESPACE LEMON
    1.85