Shutian Li
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Posts
Recent activity by Shutian Li-
define the model as a function
AnsweredHi, I have met a problem when I use Gurobi-Python I wrote my model as a function such that: def VRP1(): m.gp.Model() # add variables x=(CUSTOMER,CUSTOMERS,VEHICLES) y=..... # add constraints ...
-
problem about the matrix multiplication
AnsweredI need to code something as follows(where x is the decision variable) I write it as follows:(in python) for ss in range(cardS): px[ss] = sum(ppp[a,i,ss]*x[a,i] for a in range(cardA) for i in ran...
-
how to output the decision variable values in gurobi?
AnsweredI have two decision variables in my model, but I do not know how to return the value of these decision variables seperately. import pandas as pd import gurobipy as gpy string = '/Users/user/Des...