Jonasz Staszek
-
Community Moderator
- 合計アクティビティ 302
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 13
- サブスクリプション 124
コメント
Jonasz Staszekによる最近のアクティビティ-
Dear Weng, based on the title of the question and the pasted log I take that you would like to improve the solution time for your model. The first thing I would look at is the MIPFocus parameter - ...
-
Dear Florian, you seem to be using numpy arrays to come up with an objective statement, which is - in your case - a Gurobi QuadExpr. I would invite you to explore that section and to build your \( ...
-
You need to change the lower bound of your continuous variable. Have a look at my first answer - I modified it accordingly. Best regardsJonasz
-
Hi Charitha, it seems to me that you need to redefine your continuous variable to allow it to assume negative values. The default lower bound for continuous variables in Gurobi is 0. Try the follow...
-
Hi Sakir, I'm not sure I got your question right, but let me give it a shot. I would suggest the following approach: # I assume A and b are constants and x is defines as Gurobi variablez = model.ad...
-
Hi Jasper, I'm no Pyomo expert, but following this answer, I would take it that it is not possible to explicitly manage Gurobi environments with Pyomo. There is even an open issue in Pyomo GitHub r...
-
Hi Saeid, if you are sure that either \(x = 1 \land y = 1\) or \(x=0 \land y=0\), you can try "Big-M" kind of constraint: a = model.addVar(vtype="B")model.addLConstr(x+y, GRB.LESS_EQUAL, 2*a) If yo...
-
Hi Daphnée, you can indeed access all feasible solutions found in the course of the optimization process - this can be achieved by callbacks (here's an example). If I understood you correctly, you ...
-
Hi Sakir, first of all, the max_() method in Guroby Python has a slightly different syntax - take a look at the documentation. On top of this, the max_() method takes variables as arguments and not...
-
Hi Sujana, I would recommend you undertake the following steps: 1) Before optimizing your model, try to write it to your drive, for example as an .lp file: m.write("model.lp") and then compare the ...