-
Notifications
You must be signed in to change notification settings - Fork 5
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
dual variable #14
Comments
Hello @mahsap58, I'm not quite sure where ValueShapes fits into this. Could you elaborate? |
My total code are as below; i have one minimization problem and the second is maximization within a while loop I solve the first, get the dual of it and put it in the second model (i called it c[i], c[i] is the dual variable of constraint of first model), after solving the second model i get the asol and attach it to the x, x is initial solution of the first model. now i need c as the dual variable of first model. @variable(model, 0 <= a[1:I], int) |
@mahsap58, could it be that you posted to the wrong repo? This one is about the ValueShapes package, not JuMP and/or Gurobi. |
i tried to install ValueShapes using Pkg.add("ValueShapes") and i think there was an error and it does not installed and this is the error after running the code |
Hm, that is strange - I can't reproduce the error, and testing on Travis on Linux, OS-X and Windows also runs fine (see https://travis-ci.com/oschulz/ValueShapes.jl/builds/145010659). Could you try again with a clean, empty Julia environment (empty ".julia" directory)? |
what is this error? please tell me how can i install deps.jl |
@mahsap58, I get the impression that you're looking for general help on how to use Julia and Julia packages not related to ValueShapes. A better place for that would be https://discourse.julialang.org/ . Could you please direct your questions there? |
Hello, I want to get the dual variable of following constraint, I used getdual(con1) but i faced with an error. please help me to get the dual variables of this constraint.
@constraint(model, con1[i = 1:I], sum( x[i,k] * y[k] for k=1:K) == b[i])
The text was updated successfully, but these errors were encountered: