Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

Problem with the constraints, solution does not make sense

  • 1.  Problem with the constraints, solution does not make sense

    Posted 09/25/17 10:45 AM

    Originally posted by: gustavgans123


    Hi,

    my attached routing model works fine, but has some problem: Even though the vessel travels between node 0 and node 3 -> y[0,3,1,1] = 1 it does not include the costs for travelling between 0 and 3. That would be Ct[i,j,v] = 299.

     

    Also, Alex, pointed out, that my model is still feasible if I put: dvar boolean x[m in M, v in V, s in S] in 0..0 - which is not normal...

    There must be something wrong with the constraints. Any hint, what it could be? I can not find the problem. I attached the model, the data, the model in a written form and the original model, out of which I extracted my model.

    I appreciate any help a lot, as I am a bit stuck. cant work with this model and extend it, until the very basic version works properly.

    regards,

    leif


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Problem with the constraints, solution does not make sense

    Posted 09/27/17 06:08 AM

    Originally posted by: gustavgans123


    I solved this problem.

    I added a constraint so that all maintenance tasks are performed except for .

    forall

    (m in M, v in V, s in S) // All maintenance tasks have to be performed

    sum(m in M) x[m,v,s] >= m;


    #DecisionOptimization
    #OPLusingCPLEXOptimizer