Fix variables (No optimization over them) #590
Unanswered
amir-hoseyn77
asked this question in
Mathematical Modeling
Replies: 1 comment
-
We don't provide a direct API to fix a variable, however you can always set the variable to have the same lower and upper bound to enforce an equality constraint to a fixed value on that variable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Is there any way to fix (freeze) some variables (e.g. indices 0,1,2 of total var inds 0,1,2,3,4,5,6,7,8) with a fixed value? I mean some functions like
fix
inpyomo
? For example in the below snippet by fixing x, the optimal solution changes.Beta Was this translation helpful? Give feedback.
All reactions