lemon/lp_base.h
changeset 2205 c20b0eb92a33
parent 2148 ab368e0ab662
child 2218 50f1a780a5ff
equal deleted inserted replaced
31:7929f236bc2e 32:45872344e182
   119       UNSOLVED = 1
   119       UNSOLVED = 1
   120     };
   120     };
   121       
   121       
   122       ///\e
   122       ///\e
   123     enum SolutionStatus {
   123     enum SolutionStatus {
   124       ///Feasible solution has'n been found (but may exist).
   124       ///Feasible solution hasn't been found (but may exist).
   125 
   125 
   126       ///\todo NOTFOUND might be a better name.
   126       ///\todo NOTFOUND might be a better name.
   127       ///
   127       ///
   128       UNDEFINED = 0,
   128       UNDEFINED = 0,
   129       ///The problem has no feasible solution
   129       ///The problem has no feasible solution
  1203     ///\return true if the column has integer type and false if not.
  1203     ///\return true if the column has integer type and false if not.
  1204     bool integer(Col c){
  1204     bool integer(Col c){
  1205       return (colType(c)==INTEGER);
  1205       return (colType(c)==INTEGER);
  1206     }
  1206     }
  1207 
  1207 
       
  1208     /// The status of the MIP problem
       
  1209     SolutionStatus mipStatus() {
       
  1210       return _getMipStatus();
       
  1211     }
       
  1212 
  1208   protected:
  1213   protected:
  1209 
  1214 
  1210     virtual ColTypes _colType(int col) = 0;
  1215     virtual ColTypes _colType(int col) = 0;
  1211     virtual void _colType(int col, ColTypes col_type) = 0;
  1216     virtual void _colType(int col, ColTypes col_type) = 0;
       
  1217     virtual SolutionStatus _getMipStatus()=0;
  1212 
  1218 
  1213   };
  1219   };
  1214   
  1220   
  1215   ///\relates LpSolverBase::Expr
  1221   ///\relates LpSolverBase::Expr
  1216   ///
  1222   ///