lemon/lp_base.h
changeset 585 65fbcf2f978a
parent 540 9db62975c32b
child 584 33c6b6e755cd
equal deleted inserted replaced
6:8c00fbe8700e 7:f3fed658d59b
    66       /// Minimization
    66       /// Minimization
    67       MIN,
    67       MIN,
    68       /// Maximization
    68       /// Maximization
    69       MAX
    69       MAX
    70     };
    70     };
       
    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     
    71 
    86 
    72     ///The floating point type used by the solver
    87     ///The floating point type used by the solver
    73     typedef double Value;
    88     typedef double Value;
    74     ///The infinity constant
    89     ///The infinity constant
    75     static const Value INF;
    90     static const Value INF;
   971 
   986 
   972     virtual void _clear() = 0;
   987     virtual void _clear() = 0;
   973 
   988 
   974     virtual const char* _solverName() const = 0;
   989     virtual const char* _solverName() const = 0;
   975 
   990 
       
   991     virtual void _messageLevel(MessageLevel level) = 0;
       
   992 
   976     //Own protected stuff
   993     //Own protected stuff
   977 
   994 
   978     //Constant component of the objective function
   995     //Constant component of the objective function
   979     Value obj_const_comp;
   996     Value obj_const_comp;
   980 
   997 
  1525     void min() { _setSense(MIN); }
  1542     void min() { _setSense(MIN); }
  1526 
  1543 
  1527     ///Clears the problem
  1544     ///Clears the problem
  1528     void clear() { _clear(); }
  1545     void clear() { _clear(); }
  1529 
  1546 
       
  1547     /// Sets the message level of the solver
       
  1548     void messageLevel(MessageLevel level) { _messageLevel(level); }
       
  1549 
  1530     ///@}
  1550     ///@}
  1531 
  1551 
  1532   };
  1552   };
  1533 
  1553 
  1534   /// Addition
  1554   /// Addition