Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Unbound expression

    Posted 07/23/19 11:09 AM

    Originally posted by: AndyHam


    I could not figure out why I have "Unbound expression" error.

    // to ensure no-break during the production other than setup

    forall (l in Lines, p in Plan) 
       startOfNext(seqMch[l], itvAlt[p][l],0)- endOf(itvAlt[p][l]) ==
           item(Setup_Product, <p.p,typeOfNext(seqMch[l],  itvAlt[p][l], p.p, p.p)>).t; 
    Unbound expression: item(Setup_Product_adj,<p.p,typeOfNext(seqMch[l],itvAlt[p][l],p.p,p.p)>).t.

    Please help me. Thanks,


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: Unbound expression

    Posted 07/23/19 12:06 PM

    Originally posted by: ChrisBr


    Hello Andy,

    In case where itvAlt[p][l] would be absent or the last interval in the sequence, you are trying to get item(Setup_Product, <p.p, p.p>).t.

    Are you sure that such item exists in the set? I mean: a tuple <a,b> where a==b.

    Regards,

    Chris.


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: Unbound expression

    Posted 07/23/19 12:12 PM

    Originally posted by: AndyHam


    Thanks! That was the reason.
    I wish the error message says something like this "missing tuple entry ..." ^^

     


    #DecisionOptimization
    #OPLusingCPOptimizer