Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Circular dependancy error

    Posted 06/03/12 07:18 PM

    Originally posted by: SystemAdmin


    Hi,

    I was modeling my model using OPL. I face two problems and struck thereby to proceed.
    1. I dont know how to use if else loop. For example, I have one parameter called power.... I need to define the values based on different links used....for this if else statement will be helpful. But I could not do a normal way since its throwing error.

    2. In the constraints section, I am getting error "circular dependency declaring "Num" . I dont have a clue how to sort out this error.

    I kindly request to help you.
    Thanks!!!!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Circular dependancy error

    Posted 06/03/12 09:42 PM

    Originally posted by: SystemAdmin


    Hi,

    1) did you check Conditional statements in OPL ?

    Conditional expressions may also be useful to you
    'expressed like this:
    (condition)?thenExpr : elseExpr
    where condition is a ground condition with no decision variable. If condition is true, the condition evaluates to thenExpr ; otherwise, it evaluates to elseExpr."

    2) when declaring "Num" can you check that the expression you're using doesn't refer to "Num" itself?

    Hope this helps
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Circular dependancy error

    Posted 06/05/12 11:49 AM

    Originally posted by: SystemAdmin


    Thanks for your help.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer