Rahul Mitra
- Total activity 10
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Posts
Recent activity by Rahul Mitra-
Round all the elements in a gurobi MVar
AnsweredI'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...
-
Can I print values of integer variable during optimization?
AnsweredCurrently 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...
-
Matrix multiplication in objective function. "TypeError: 'MLinExpr' object is not subscriptable"
AnsweredHello, 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] - ...