Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Integer Value Error

  • 1.  Integer Value Error

    Posted Wed November 08, 2017 07:12 AM

    Originally posted by: memo85


    Hi. I want to solve a problem that required files have been attached to the post. But, OPL gives "Operator not available for booelan" error. How can I resolve this error? Thank you in advance. 

    Regards. 


    #ConstraintProgramming-General
    #DecisionOptimization


  • 2.  Re: Integer Value Error

    Posted Thu November 09, 2017 05:08 AM

    Hi,

    in

    forall (i in stations, r in resource) {
            sum (t in tasks) (x[t]==i)*Capacities[t][r] <= attributeBounds;

    Capacities is a set so I would rather write something like

    forall (i in stations, r in resource) {
            sum (t in tasks,c in Capacities[t][r]) (x[t]==i)*c <= attributeBounds;

    regards


    #ConstraintProgramming-General
    #DecisionOptimization


  • 3.  Re: Integer Value Error

    Posted Thu November 09, 2017 05:22 AM

    Originally posted by: memo85


    Dear Alex, Thank you very much. I could not understand I how I made this mistake. 

    Regards.


    #ConstraintProgramming-General
    #DecisionOptimization