IndexError solved by reordering constraints
ユーザーの入力を待っています。I came across an interesting behavior of Gurobi.
After writing down a series of constraints, I received "IndexError: invalid index to scalar variable." I was able to fix this error just by reordering the constraints (by moving some constraints up in the code). How do you explain this behavior? Thank you.
0
-
正式なコメント
This post is more than three 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. -
It's hard to say without seeing your code. Can you please post a minimal working example of code that reproduces this error, as well as the modified code that resolves the error?
0 -
Thanks for the reply. The original problem is pretty big. Let me try to generate a smaller example code in the next few days to reproduce the error and post it.
0
投稿コメントは受け付けていません。
コメント
3件のコメント