Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to use cplex.importModel

    Posted 08/01/10 10:59 PM

    Originally posted by: Sung_Hwang


    Hi!

    I try to read model by using cplex.importModel(), but it's not working

    IloEnv env;
    IloModel model(env);
    IloCplex cplex(env);

    build_master(); -> Under this function, I built model formulation and write it by using
    exportModel("master.lp")

    cplex.importModel(model, "master.lp"); -> I try to import model, but I got the error message that

    Unhandled exception at 0x012c2449 in bender_decomposition.exe;0xC0000005:
    Access violation reading location 0xfeef00fe

    I do not know what is wrong in this code.

    Thank you
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to use cplex.importModel

    Posted 08/03/10 11:32 AM

    Originally posted by: SystemAdmin


    Is it possible that you already end()ed the model or environment when you try to import the model? Does the problem also occur when you just do
    IloEnv env;
    IloModel model(env);
    IloCplex cplex(model);
    cplex.importModel(model, ...);
    

    Does this simple 4 line program also show the problematic behavior.
    #CPLEXOptimizers
    #DecisionOptimization