In python api, is model.copy() deep copy or not
回答済みSuppose model_1 is read from file.
model_2 = model_1.copy()
if i modify model_2(fix variables or add constraints), will model_1 still keep the original form?
0
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Yes. Please try this.
Cheers,
David0 -
Yes, it should keep the original form.
You may also add/remove constraints/fixations from a single model, which may be easier in some cases. See this other answer for more information.
1
投稿コメントは受け付けていません。
コメント
3件のコメント