Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Scripting runtime error: unknown property 'UB'

  • 1.  Scripting runtime error: unknown property 'UB'

    Posted 11/07/15 08:18 AM

    Originally posted by: Mintch Zulitch


    Hi,

    I'm writing a simple CPLEX code. Everything is fine and model is run normally.

    When I insert this block of code, an execute block, at the end of my original code I get "Scripting runtime error: unknown property 'UB'":

     

     execute param2{
     writeln( C1.UB," ",C1.LB," ",C1.dual," ",C1.slack); 
    }

     

    Note that C1 is a constraints set:

     

    forall(j in jobs_ind)
           C1: 
       sum(i in jobs_ind) x[i][j]==1;

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Scripting runtime error: unknown property 'UB'

    Posted 11/07/15 11:16 AM

    Hi

    instead of displaying C1.UB you should display for each i in jobs_ind

     

    C1[ i].UB

     

     

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer