
Rahul Mitra
- 合計アクティビティ 10
- 前回のアクティビティ
- メンバー登録日
- フォロー 0ユーザー
- フォロワー 0ユーザー
- 投票 0
- サブスクリプション 3
アクティビティの概要
Rahul Mitraさんの最近のアクティビティ-
Rahul Mitraさんが投稿を作成しました:
Round all the elements in a gurobi MVar
回答済みI'm trying to set a gurobi MVar to a list of integers. In particular, in the code below model.addConstr(d1_dtheta == (d1 @ dtheta)) d1_dtheta is an MVar, d1 is a numpy matrix and dtheta is a guro...
-
Rahul Mitraさんがコメントを作成しました:
Thank you! This was really helpful! Rahul
-
Rahul Mitraさんが投稿を作成しました:
Can I print values of integer variable during optimization?
回答済みCurrently in my model, I have an integer variable, k. I can obviously print the value of k once the optimization is "complete". However, my model is fairly complex and never seems to converge. I've...
-
Rahul Mitraさんがコメントを作成しました:
Hi Jaromil, I think your comments regarding the non-convexity and pre-solve make sense. They are not the exact same model, as one of them is an L-1 norm minimization and the other is a L-2 norm min...
-
Rahul Mitraさんがコメントを作成しました:
Hi Jaromil, Sure thing, it's hard for me to share a small example as when the model is small, they both perform the same, as expected. It's when the model scales that I really notice the difference...
-
Rahul Mitraさんがコメントを作成しました:
Hi Jaromil, Thanks for your response. I solved the issue by using auxiliary constraints. In particular, I set model.addConstr(diff_1 == mvar_a - mvar_b) and then, in my objective, I minimize diff...
-
Rahul Mitraさんが投稿を作成しました:
Matrix multiplication in objective function. "TypeError: 'MLinExpr' object is not subscriptable"
回答済みHello, I'm trying to solve this mixed integer problem and running into issues in specifying my objective function. My code is below. #set the objective functionmodel.setObjective(sum((dtheta[i] - ...