How can I save the variable values after gurobi optimization calculation in matrix form?
回答済み
I use gurobi function to get variable value in python,but I get some results as shown.Because there are many variables in my program, I wonder if there is any way I can save my result in matrix form. just like :
but I can only save the result like this:
When I create a variable, I can use matrix like:

so how can I save my value of variables in matrix 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. -
Hi Zhao,
You can use the matrix API: Model.addMVar()
Example: matrix1.pyCheers,
David0
投稿コメントは受け付けていません。
コメント
2件のコメント