ANH TU VU
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 2
Posts
Recent activity by ANH TU VU-
automatically get values of auxiliary variables
Awaiting user inputI have main variables (V) and auxiliary variables (U) with the below formula example U1 = 0.5 V1 + 0.7 V2 + 0.1 V3 After Gurobi solves the optimization problems, I get an array of V, like V1=5, V2=...
-
stack MLinExpr and add constraints
Answeredm = gp.Model('LP_model') expected_cost = m.addMVar(70, lb=0, ub=float('inf'), vtype='C', name='expected_cost') m.setObjective(expected_cost.sum(), GRB.MINIMIZE) # expected_cost.shape = (70,),...