Changeset 242


Ignore:
Timestamp:
Feb 1, 2006 4:57:04 PM (14 years ago)
Author:
forrest
Message:

infeasible on preprocessing

Location:
trunk/Test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Test/Cbc_ampl.cpp

    r241 r242  
    2727#include "Cbc_ampl.h"
    2828#include "unistd.h"
     29#include <string>
    2930static char*
    3031clpCheck(Option_Info *oi, keyword *kw, char *v)
     
    6263static Option_Info Oinfo = {"cbc", "Cbc 1.01", "cbc_options", keywds, nkeywds, 0, "",
    6364                                0,decodePhrase,0,0,0, 20060130 };
     65// strdup used to avoid g++ compiler warning
    6466 static SufDecl
    6567suftab[] = {
     68#if 0
    6669        { "current", 0, ASL_Sufkind_con | ASL_Sufkind_outonly },
    6770        { "current", 0, ASL_Sufkind_var | ASL_Sufkind_outonly },
     
    7578        { "sosno", 0, ASL_Sufkind_var | ASL_Sufkind_real },
    7679        { "sosref", 0, ASL_Sufkind_var | ASL_Sufkind_real },
    77         { "sstatus", 0, ASL_Sufkind_var, 0 },
    78         { "sstatus", 0, ASL_Sufkind_con, 0 },
     80#endif
     81        { strdup("sstatus"), 0, ASL_Sufkind_var, 0 },
     82        { strdup("sstatus"), 0, ASL_Sufkind_con, 0 }
     83#if 0
    7984        { "unbdd", 0, ASL_Sufkind_var | ASL_Sufkind_outonly},
    8085        { "up", 0, ASL_Sufkind_con | ASL_Sufkind_outonly },
    8186        { "up", 0, ASL_Sufkind_var | ASL_Sufkind_outonly }
     87#endif
    8288        };
    8389#include "float.h"
     
    342348    { "unbounded",                              300, 0 },
    343349    { "iteration limit etc",                    400, 1 },
    344     { "solution limit",                         101, 1 },
     350    { "solution limit",                         401, 1 },
    345351    { "ran out of space",                       500, 0 },
    346352    { "status unknown",                         501, 1 },
  • trunk/Test/CoinSolve.cpp

    r237 r242  
    14541454                    solver2->setHintParam(OsiDoInBranchAndCut,false,OsiHintDo) ;
    14551455                }
     1456#ifdef CBC_AMPL
     1457                if (!solver2&&usingAmpl) {
     1458                  // infeasible
     1459                  info.problemStatus=1;
     1460                  info.objValue = 1.0e100;
     1461                  sprintf(info.buffer,"infeasible by pre-processing");
     1462                  info.primalSolution=NULL;
     1463                  info.dualSolution=NULL;
     1464                }
     1465#endif
    14561466                if (!noPrinting) {
    14571467                  if (!solver2) {
Note: See TracChangeset for help on using the changeset viewer.