I need help coding this optimization problem
回答済み
My main issue here is that some of the constraints require the solution (i.e., the value of x_ij) to be evaluated. I tried coding this as functions where right after my objective, I call the function that computes condition (8) as shown in the figure below:
but I keep getting the following error:
any idea how to code this?
thanks
-
正式なコメント
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 why not try our AI Gurobot?. -
Can you edit your post with the tail of the Gurobi log and with the definition of clustering_bs() and clustering_sc().
0 -
I added the definition of clustering_bs() and clustering_sc()
I am not sure what do you mean by tail of the gurobi log
0 -
The getValue() method evaluates a linear expression in a solution. You can only call it once Gurobi knows a solution, i.e., you need to call optimize() before you can call getValue().
Silke
0
投稿コメントは受け付けていません。
コメント
4件のコメント