Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  cplex.readModel warning

    Posted 12/24/11 08:24 PM

    Originally posted by: PingLiu


    I have 2 .lp files, where there are some fixed variables.
    in test1.lp,'x2' and 'x5'are fixed;
    in test2.lp, there are 178 fixed variables(including 'x14','x31',...) .
    when I run
    cplex.readModel(FileName)
    
    for both of them,
    why does the matlab show warnings for test2 but not for test1?
    Warning, line 3975: Name 'x14' does not exist.
    Warning, line 3992: Name 'x31' does not exist.
    ...........................................
    158 name warnings not printed.
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: cplex.readModel warning

    Posted 12/26/11 06:37 PM

    Originally posted by: SystemAdmin


    In test1.lp, x2, x5 variables are fixed as you say. However you donot see any warnings associated with them since they are present not just in the 'Bounds' section where you fix them to their values, but also atleast in the model's objective function and/or the constraints ('subject to' block).

    On the other hand, in test2.lp, x14 (and others like x31) is only present in the 'Bounds' section, but not in the model's objective function or the constraints. A variable that is not present in the objective function or the constraints is not really part of the model and thus the warning indicating the same appears when you read the model in.

    Hope this explains.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: cplex.readModel warning

    Posted 12/27/11 04:25 PM

    Originally posted by: PingLiu


    thanks for your reply.
    could you also see the similar problem in the following?
    Link:http://www.ibm.com/developerworks/forums/thread.jspa?threadID=413193&tstart=0
    according to your explanation, I still cannot understand this situation.
    #CPLEXOptimizers
    #DecisionOptimization