-
尊敬的PyOptInterface团队您好! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Set the upper bound and lower bound of the variable to the same value. def fix_variable(model, var, value):
model.set_variable_attribute(var, poi.VariableAttribute.LowerBound, value)
model.set_variable_attribute(var, poi.VariableAttribute.UpperBound, value)
fix_variable(model, x, 1.0) |
Beta Was this translation helpful? Give feedback.
-
尊敬的pyoptinterface团队您好! 2、我想知道如何查询我定义了那些变量和约束条件的形式,用于检查代码是否有误,该如何写相关代码? |
Beta Was this translation helpful? Give feedback.
-
Please use codeblock in markdown to make your code more readable for your future comments. |
Beta Was this translation helpful? Give feedback.
Set the upper bound and lower bound of the variable to the same value.