Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Vehicle

    Posted 07/12/18 04:10 AM

    Originally posted by: -3300-


    Hey 

    I have a big Problem and I hope you can help me. I try to model fix cost for every truck, which the program use. Every truck have a capacity of 25 tons. 

    In my model I try to minimize the cost of the fix cost from every vehicle and the variable cost for the transport. 

     

    I generated this one. But my model only minimize the variable cost. 

     

    Thanks for your help.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: fix cost for vehicle

    Posted 07/18/18 04:16 AM

    Hi,

    do you mean each time there is a flow between a source and a destination , you should have an additional fixed cost ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: fix cost for vehicle

    Posted 07/18/18 04:32 AM

    Originally posted by: -3300-


    Hex Alex,

    Thank you for your answer.

     

    Yes, I mean each time there is a flow between a source and a destination, the model should calculate fixed cost for the truck.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: fix cost for vehicle

    Posted 07/18/18 05:17 AM

    Hi,

    then you could try

    float fixedCost=100;

    dvar boolean x[source][destination];

    and then turn the objective into

    minimize sum (i in source, j in destination, k in goods) (d[i][j][k] + L[i][j][k]) * c[i][j] +
        fixedCost*sum(i in source,j in destination) x[i][j] ;

    and add a new constraint in the subject to block

    forall(i in source,j in destination)    (x[i][j]==0) => (0==sum(k in goods)(d[i][j][k] + L[i][j][k]));

    regards

     

    https://www.linkedin.com/pulse/ist-mathematische-optimierung-und-wie-kann-sie-helfen-alex-fleischer/


    #DecisionOptimization
    #OPLusingCPLEXOptimizer