-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
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
Problem with JuMP.fix command #30
Comments
Thanks for the update. I'll take a look surely. By the way, i don't think I can work on it sometime soon as I am in an international travel. |
I don't understand what fixing a variable in a complementarity problem means. Does your complementarity problem have multiple solutions? Does the PATH solver or other complementarity problem solvers (if any) support such variable fixing functionality? |
I am also getting this JuMP.fix error... I believe trivedymk might be right that setvalue has been deprecated. Any solver should be able to handle this type of fixing... an equivalent statement would be to say that JuMP.fix(x, 5) or 5 <= x <=5. In a GAMS environment you can do this with PATH. |
Closing for the new version of PATHSolver.jl chkwon/PATHSolver.jl#44 |
Hi,
I've been working on a complementarity model and it involves fixing some variables. To do this in JuMP i've attempted to use
for i in suppliers, s in seasons, t in timeperiods JuMP.fix(s_contract["EU","UK",i,s,t],0) JuMP.fix(s_spot["EU","UK",i,s,t],0) end
However, when I run this with complementarity I get the error
Complementarity.jl/src/mcp.jl
Line 145 in 9f2405d
So setvalue here needs to be changed to JuMP.fix to reflect the updated jump build I think.
The text was updated successfully, but these errors were encountered: