Shutian Li
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Activity overview
Latest activity by Shutian Li-
Shutian Li commented,
Hi Jaromił, Thanks for your response. Are there any methods that allow me to include two or three models that share the same sets? For example, what I want such as: CUSTOMERS = [i for i in range(...
-
Shutian Li created a post,
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 ...
-
Shutian Li commented,
I need to code \[ \sum_{i \in S} \sum_{a \in A} P_{is}^{a}x_{i}^{a}\] I wrote it as follows, it works well in a separate python file but when I use the gurobi, it does not make sense. Here is my c...
-
Shutian Li created a post,
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...
-
Shutian Li created a post,
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...