Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Variables Name

    Posted 06/20/13 03:12 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Dear all, I'm using Concert Technology

    I defined many variables arrays in my code, for example  IloNumVarArray4 X(env,nC);

    When I generate .lp file using cplex.exportModel("model.LP"); , names in this file don't match the actual names that I've used.  Such as "id1188 and id1189" instead of X's

    My question is "Can I show the variables in .lp file with the same names?" such as X1121 or X[1][1][2][1]. I tried many commands such as " setNames" but they don't work

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Variables Name

    Posted 06/24/13 04:11 AM

    What did the names look like you tried to set with setNames()? Characters like '[' or ']' are not allowed for names in LP files (see here), hence you will never be able to see names like X[1][1][2][1] in an LP file. Make sure that your names conform with the LP file format then setNames() should work fine.


    #CPLEXOptimizers
    #DecisionOptimization