Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  "Not a mixed-integer problem" doubt

    Posted 11/09/09 04:25 PM

    Originally posted by: SystemAdmin


    [edurne said:]

    Hello,

    I'd like to know the reason why when I execute an opl project from the Ilog IDE everything's works perfectly (.mod, .dat,.ops) and 50 solutions are generated; but when I execute it from the Java application I got the error "CPLEX Error  3003: Not a mixed-integer problem" when the application tries to "populate" the model.

    The source code to charge the project to the java application is:

    IloOplFactory.setDebugMode(true);
    IloOplFactory oplF = new IloOplFactory();
    IloOplErrorHandler errHandler = oplF.createOplErrorHandler(System.out);
    IloOplSettings settings = oplF.createOplSettings(errHandler);
    IloCplex cplex = oplF.createCplex();
    IloOplProject prj = oplF.createOplProject("C:\\Documents and Settings\\dmartinez\\opl\\Test");
    IloOplRunConfiguration rc = prj.makeRunConfiguration();
    IloOplModel opl = rc.getOplModel();
    opl.generate();

    if (cplex.populate())
    {...}

    Thanks in advance for your help.

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: "Not a mixed-integer problem" doubt

    Posted 11/11/09 11:35 AM

    Originally posted by: SystemAdmin


    [edurne said:]

    Well...I've solved the problem by adding "rc.setCplex(cplex);".

    Regards!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer