COIN-OR::LEMON - Graph Library

Changeset 2218:50f1a780a5ff in lemon-0.x for lemon/lp_base.h


Ignore:
Timestamp:
09/21/06 16:46:28 (13 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2952
Message:

Interface to the cplex MIP solver: it is little, a bit sour but it is ours.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r2185 r2218  
    7676        return cross[n];
    7777      }
    78       ///\todo Create an own exception type.
    79       else throw LogicError(); //floatingId-s must form a continuous range;
     78      else {
     79        ///\todo Create an own exception type.
     80        throw LogicError(); //floatingId-s must form a continuous range;
     81      }
    8082    }
    8183    ///Remove a fix id.
     
    11701172      REAL = 0,
    11711173      ///Integer variable
    1172       INTEGER = 1
     1174
     1175      ///Unfortunately, cplex 7.5 somewhere writes something like
     1176      ///#define INTEGER 'I'
     1177      LEMON_INTEGER = 1
    11731178      ///\todo No support for other types yet.
    11741179    };
     
    11931198    void integer(Col c, bool enable) {
    11941199      if (enable)
    1195         colType(c,INTEGER);
     1200        colType(c,LEMON_INTEGER);
    11961201      else
    11971202        colType(c,REAL);
     
    12031208    ///\return true if the column has integer type and false if not.
    12041209    bool integer(Col c){
    1205       return (colType(c)==INTEGER);
     1210      return (colType(c)==LEMON_INTEGER);
    12061211    }
    12071212
Note: See TracChangeset for help on using the changeset viewer.