lemon/clp.h
changeset 1089 552e3d1242c6
parent 540 9db62975c32b
child 746 e4554cd6b2bf
equal deleted inserted replaced
2:a6d76bbab803 3:8067a0cc4898
   134     virtual ProblemType _getPrimalType() const;
   134     virtual ProblemType _getPrimalType() const;
   135     virtual ProblemType _getDualType() const;
   135     virtual ProblemType _getDualType() const;
   136 
   136 
   137     virtual void _clear();
   137     virtual void _clear();
   138 
   138 
       
   139     virtual void _messageLevel(MessageLevel);
       
   140     
   139   public:
   141   public:
   140 
   142 
   141     ///Solves LP with primal simplex method.
   143     ///Solves LP with primal simplex method.
   142     SolveExitStatus solvePrimal();
   144     SolveExitStatus solvePrimal();
   143 
   145 
   151     int clpRow(Row r) const { return rows(id(r)); }
   153     int clpRow(Row r) const { return rows(id(r)); }
   152 
   154 
   153     ///Returns the variable identifier understood by CLP.
   155     ///Returns the variable identifier understood by CLP.
   154     int clpCol(Col c) const { return cols(id(c)); }
   156     int clpCol(Col c) const { return cols(id(c)); }
   155 
   157 
   156     ///Enum for \c messageLevel() parameter
       
   157     enum MessageLevel {
       
   158       /// no output (default value)
       
   159       MESSAGE_NO_OUTPUT = 0,
       
   160       /// print final solution
       
   161       MESSAGE_FINAL_SOLUTION = 1,
       
   162       /// print factorization
       
   163       MESSAGE_FACTORIZATION = 2,
       
   164       /// normal output
       
   165       MESSAGE_NORMAL_OUTPUT = 3,
       
   166       /// verbose output
       
   167       MESSAGE_VERBOSE_OUTPUT = 4
       
   168     };
       
   169     ///Set the verbosity of the messages
       
   170 
       
   171     ///Set the verbosity of the messages
       
   172     ///
       
   173     ///\param m is the level of the messages output by the solver routines.
       
   174     void messageLevel(MessageLevel m);
       
   175 
       
   176   };
   158   };
   177 
   159 
   178 } //END OF NAMESPACE LEMON
   160 } //END OF NAMESPACE LEMON
   179 
   161 
   180 #endif //LEMON_CLP_H
   162 #endif //LEMON_CLP_H