Unbounded Ray
回答済みHello,
I have a problem and I am using Bender's Decomposition to solve it. This is my subproblem which gets unbounded:

I want to get the unboundedness ray to add it to the master problem's feasibility cut as below:

Note that I = 238, J = 19, K = 15. So I have 4522 q(ij)s, 4522 p(ij)s, and 19 r(j)s. (Totally 9063 variables)
I am using UnbdRay function as below:
-
Hi Mina,
I guess your question is how to obtain the unbounded ray for one particular variable, right?
You can access the UnbdRay attribute directly for each variable viavar.UnbdRay
In your code, it seems you want to access the UnbdRay attribute for the whole variable array (sp1?) in one step.
How did you create your variables? If you created them via addVars() liker = model.addVars(J, ...)
p = model.addVars(I, J, ...)
q = model.addVars(I, J, ...)with I and J being the index sets for your constraints, then you can access the attribute via
q[i,j].UnbdRay
for one particular index i and index j. With this, you can build your feasibility cut.
Best regards,
Mario0
サインインしてコメントを残してください。
コメント
1件のコメント