COIN-OR::LEMON - Graph Library

Changeset 2218:50f1a780a5ff in lemon-0.x for lemon/lp_cplex.cc


Ignore:
Timestamp:
09/21/06 16:46:28 (18 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_cplex.cc

    r2168 r2218  
    270270    status = CPXlpopt(env, lp);
    271271    //status = CPXprimopt(env, lp);
    272 #if CPX_VERSION >= 900
     272#if CPX_VERSION >= 800
    273273    if (status)
    274274    {
     
    417417  LpCplex::SolutionStatus LpCplex::_getPrimalStatus()
    418418  {
     419    //Unboundedness not treated well: the following is from cplex 9.0 doc
     420    // About Unboundedness
     421
     422    // The treatment of models that are unbounded involves a few
     423    // subtleties. Specifically, a declaration of unboundedness means that
     424    // ILOG CPLEX has determined that the model has an unbounded
     425    // ray. Given any feasible solution x with objective z, a multiple of
     426    // the unbounded ray can be added to x to give a feasible solution
     427    // with objective z-1 (or z+1 for maximization models). Thus, if a
     428    // feasible solution exists, then the optimal objective is
     429    // unbounded. Note that ILOG CPLEX has not necessarily concluded that
     430    // a feasible solution exists. Users can call the routine CPXsolninfo
     431    // to determine whether ILOG CPLEX has also concluded that the model
     432    // has a feasible solution.
     433
    419434    int stat = CPXgetstat(env, lp);
    420 #if CPX_VERSION >= 900
     435#if CPX_VERSION >= 800
    421436    switch (stat)
    422437    {
     
    486501  {
    487502    int stat = CPXgetstat(env, lp);
    488 #if CPX_VERSION >= 900
     503#if CPX_VERSION >= 800
    489504    switch (stat)
    490505    {
     
    515530  {
    516531    int stat = CPXgetstat(env, lp);
    517 #if CPX_VERSION >= 900
     532#if CPX_VERSION >= 800
    518533    switch (stat)
    519534    {
Note: See TracChangeset for help on using the changeset viewer.