We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We consider the three following formulations:
A (optimal solution has only x non-zero)
using JuMP, GLPK m = Model(GLPK.Optimizer) @variable(m, x[1:2]>= 0) @variable(m, y[1:2] >= 0) @constraint(m, -x[1] + 4x[2] + 2y[1] + 3y[2] >= 2) @constraint(m, x[1] + 3x[2] + y[1] + y[2] >= 3) @objective(m, Min, x[1] + 4x[2] + 2y[1] + 3y[2]) optimize!(m) objective_value(m) value.(x) value.(y)
B (optimal solution has both x, y non-zero)
using JuMP, GLPK m = Model(GLPK.Optimizer) @variable(m, x[1:2] >= 0) @variable(m, y[1:2] >= 0) @constraint(m, -x[1] + x[2] + y[1] - 0.5y[2] >= 4) @constraint(m, 2x[1] + 1.5x[2] + y[1] + y[2] >= 5) @objective(m, Min, x[1] + 2x[2] + 1.5y[1] + y[2]) optimize!(m) objective_value(m) value.(x) value.(y)
C (case with two subproblems)
# TODO
We have to test make sure that the Benders loop finds the optimal solutions for the following cases:
The text was updated successfully, but these errors were encountered:
guimarqu
najaverzat
Successfully merging a pull request may close this issue.
We consider the three following formulations:
A (optimal solution has only x non-zero)
B (optimal solution has both x, y non-zero)
C (case with two subproblems)
# TODO
We have to test make sure that the Benders loop finds the optimal solutions for the following cases:
The text was updated successfully, but these errors were encountered: