Carl Baier
- 合計アクティビティ 61
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 1
- サブスクリプション 5
コメント
Carl Baierによる最近のアクティビティ-
Jaromił Najman I get that. The problem is, I only want the new variable newvar being added to the quadratic constraints, as the second constraint in the MP, which is \(\sum_r \lambda_{ir}=1\), does...
-
Jaromił Najman Thank you for the detailed answer. Unfortunately, I do not fully understand it. Do you mean that I should reintroduce a linear constraint in the MP, and then only in modifyConstraint...
-
Yes, I saw that, but I already knew what the problem was. Unfortunately I don't know how this works, so that newcon is passed. I tried it (see code above) and now I get another error: File "src\...
-
Jaromił Najman I see thanls. However, it looks like I'm too stupid for that. If I replace self.cons_demand with newcon it doesn't work. How would it be right then? Is a return newcon missing somewh...
-
Jaromił Najman Thanks for the answer, unfortunately, this error still occurs. gurobipy.GurobiError: Only linear constraints allowed I adapted my code accordingly. I also make sure to describe my pr...
-
Jaromił Najman I tried this but it doesnt work! def modifyConstraints(self): for t in self.days: for s in self.shifts: self.newvar = self.model.addVars(self.physicians, self.d...
-
Jaromił Najman I just did (see code in OP), but i still get this error! gurobipy.GurobiError: Invalid argument to QuadExpr addition
-
I still run into this error: AttributeError: 'MasterProblem' object has no attribute 'newvar' I know that newvar and newcoeff are not initialized, but I don't know what to assign to them. An empty ...
-
Jaromił Najman Thanks. Sadly i am running into this error: AttributeError: 'gurobipy.QConstr' object has no attribute 'getQCRow' And have i placed the model.update() correctly after the loop?
-
Jaromił Najman Thanks. Would this work? Sadly i cant test it right now! def modifyConstraints(self): for t in self.days: for s in self.shifts: current_cons = self.cons_demand[t...