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