SCIP solver multiple objective functions with weights in Java #2450
Unanswered
jaimeviej
asked this question in
Linear Solver questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new in constraint programming.
I'm trying to solve a problem that requires a multi objective function(o.f.) such as:
o.f.: obj1+ obj2 + ... + obj7
Each objective is multiplied by a weight (1000, 8, 1) and a parameter defined in arrays (d, um, m, cob, r, cost).
In the examples i've been learning from, it seems that when they add a coefficient it just adds it to the objective function.
In my case some values that I add are ignored and others ar not. I can't find why is this happening.
This is what I have:
In the example I'm using there is only one possibility and it's cost should be over 1000. But the results value is 40.01.
When i comment the 40 cost line the result value is 1000.01. It seems that it's only taking the last line of each for.
Any thoughts on what am I doing wrong?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions