Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to management the expression of objective function

    Posted 03/30/19 11:18 AM

    Originally posted by: xinzhangandy


    Hello everyone, now I meet a problem when I caculate the objective value of a MIP model, I want to maxmize the workers needed to running a facility in all time period,  so I defined  ak:average number of workers needed to handling per unit product at facility k, and bkt: the product needed to produce at facility k in time period t  so the objective function should be: maximize sum(k in K, t in T)a[k]*b[k][t], since the number of workers needed in each time period should be an integer, so I want to use a ceil function to realize it ,but I do not know how to do, hope someone can help me, thank you


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: How to management the expression of objective function



  • 3.  Re: How to management the expression of objective function

    Posted 03/31/19 02:40 AM

    Originally posted by: xinzhangandy


    HI, thank you for the link, now I know how to realize ceil function in  constraints, but I think my problem is more complex. I hope the image I written in Word describe my problem clearly and can get help from you.

    111


    #DecisionOptimization


  • 4.  Re: How to management the expression of objective function

    Posted 03/31/19 04:11 AM

    Hi,

    in order to make sure an expression is integer you may also write a constraint such as this expression is equal to a dvar int.

    Take

    dvar float+ x;
    dvar float+ y;

     

    minimize abs(x-y);
    subject to
    {
    x+y==5;
    }

    which divides 5 into 2.5 and 2.5

    But then you need x to be integer.

    Then you can write

    dvar float+ x;
    dvar float+ y;

    dvar int intv;

    minimize abs(x-y);
    subject to
    {
    x+y==5;
    x==intv;
    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: How to management the expression of objective function

    Posted 03/31/19 04:22 AM

    Originally posted by: xinzhangandy


    Thank you very much, It is very nice of you to give me the idea of solving it.

    Bests


    #DecisionOptimization
    #OPLusingCPLEXOptimizer