lemon/lp_base.h
changeset 2267 3575f17a6e7f
parent 2260 4274224f8a7d
child 2268 ad15bdd334bf
equal deleted inserted replaced
34:1cd8980faf06 35:dad5597da163
  1172       REAL = 0,
  1172       REAL = 0,
  1173       ///Integer variable
  1173       ///Integer variable
  1174 
  1174 
  1175       ///Unfortunately, cplex 7.5 somewhere writes something like
  1175       ///Unfortunately, cplex 7.5 somewhere writes something like
  1176       ///#define INTEGER 'I'
  1176       ///#define INTEGER 'I'
  1177       LEMON_INTEGER = 1
  1177       INT = 1
  1178       ///\todo No support for other types yet.
  1178       ///\todo No support for other types yet.
  1179     };
  1179     };
  1180 
  1180 
  1181     ///Sets the type of the given coloumn to the given type
  1181     ///Sets the type of the given coloumn to the given type
  1182     ///
  1182     ///
  1195     ///Sets the type of the given Col to integer or remove that property.
  1195     ///Sets the type of the given Col to integer or remove that property.
  1196     ///
  1196     ///
  1197     ///Sets the type of the given Col to integer or remove that property.
  1197     ///Sets the type of the given Col to integer or remove that property.
  1198     void integer(Col c, bool enable) {
  1198     void integer(Col c, bool enable) {
  1199       if (enable)
  1199       if (enable)
  1200 	colType(c,LEMON_INTEGER);
  1200 	colType(c,INT);
  1201       else
  1201       else
  1202 	colType(c,REAL);
  1202 	colType(c,REAL);
  1203     }
  1203     }
  1204 
  1204 
  1205     ///Gives back whether the type of the column is integer or not.
  1205     ///Gives back whether the type of the column is integer or not.
  1206     ///
  1206     ///
  1207     ///Gives back the type of the column.
  1207     ///Gives back the type of the column.
  1208     ///\return true if the column has integer type and false if not.
  1208     ///\return true if the column has integer type and false if not.
  1209     bool integer(Col c){
  1209     bool integer(Col c){
  1210       return (colType(c)==LEMON_INTEGER);
  1210       return (colType(c)==INT);
  1211     }
  1211     }
  1212 
  1212 
  1213     /// The status of the MIP problem
  1213     /// The status of the MIP problem
  1214     SolutionStatus mipStatus() {
  1214     SolutionStatus mipStatus() {
  1215       return _getMipStatus();
  1215       return _getMipStatus();