
Ramesh singh
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 6
- Subscriptions 5
Posts
Recent activity by Ramesh singh-
conditional statement
AnsweredHi, m.addConstr((C==1)>>(D==5)) Where C is the optimized variable variable. D is assigned 5 when C is 1. When C is 0 then D must be zero. It gives garbage value.. Please let me know how it can ...
-
Using gurobi optimize variable
AnsweredPlease help, In the below code, i want to optimize the C such that maximum bw_initial[i][k] is selected. This code does not produce the correct value for all i..when i run i got this for i=1, C[1,...
-
Initializing the auxiliary gurobi variables
AnsweredHi, i am using t3[j,i] as auxiliary variable, i need to initialize it with zero. This variable t3 is updated using constraints when optimized variable C is set. I am sharing here partial cod...
-
Using gurobi optimize variable
AnsweredIn the below code, A[i,k] is optimize variable (decision). This decision variable will change the value of PN. So i am trying to update the PN for when A[i][k] ==1. For example if M is 5 and P is...
-
using gurobi variable as index in 2d array
AnsweredA=[1,2,3,4,5,1,2,3,4,5,1,2,3,4,5] L Is 2d matrix of size M * M # L[1][1], L[1][2],......L[5][5] E=m.addMVar(3,vtype=GRB.INTEGER,lb=1,ub=5, name="E") #E[1], E[2], E[0] unused how to model this equa...