Marika Karbstein
-
Gurobi Staff
- 合計アクティビティ 532
- 前回のアクティビティ
- メンバー登録日
- フォロー 1ユーザー
- フォロワー 1ユーザー
- 投票 3
- サブスクリプション 265
コメント
Marika Karbsteinによる最近のアクティビティ-
ModelA.printAttr('X') prints all non-zero solution values.
-
If you want to check your model, please use Model.write() for example model.write("check.lp"); display() is not a provided Python API function.
-
I think there are several problems in your model: In your first set of constraints, I think you want to use 'max' instead of 'gp.max_' You cannot combine two expressions with "and" in an indicator...
-
That is right, the functions GRBVar::index() and GRBConstr:index() are not available in Gurobi Version 8.1. The documentation on the Gurobi Webiste can be filtered by version. In this way, you will...
-
Ok, I see.Yes, you need to use the column argument like in the feasopt.py example (see also Modify a model) and add the variables individually with addVar().
-
Hi Prasanna,Did you check this article How do I find additional solutions to a model?
-
In your example, it was not clear that "3" is an index of first_set and that you need a variable for each pair of first_set, second_set. Did you try x = m.addVars(first_set, second_set, vtype=GRB.C...
-
You probably wanted to do something like x[3] = m.addVars(second_set, vtype=GRB.CONTINUOUS) which adds multiple variables without defining specific bounds?
-
Hi Jonas, The lines for j in second_set: x[3,j] = m.addVar(3,j, vtype=GRB.CONTINUOUS) add variables with lower bound 3 and upper bound j=0/1/2 which is infeasible. In general, the article How do...
-
Hi Jan, It is not possible to retrieve the sub-optimal pool solutions during a callback since it is not possible to change parameters in a callback. You can only access the values for the current b...