FEI XUE
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 6
Activity overview
Latest activity by FEI XUE-
FEI XUE commented,
Doctor Jonasz Thank you very much. It helps me a lot.
-
FEI XUE created a post,
How to output all feasible solutions?
Answeredfrom gurobipy import *import numpy as npimport mathspace=gurobipy.Model('matchpattern')n=6pij=space.addVars(range(1,n+1), range(1,n+1),vtype=gurobipy.GRB.BINARY) space.update()space.setObjective(qu...
-
FEI XUE commented,
Mr.Jonasz Thanks for your reply. I'm doing a matching problem, please let me describe it in more detail. When there are 6 people, there will be a matching situation like the one shown in the figure...
-
FEI XUE commented,
Mr.Jonasz Thanks for your reply. When n is 6, I want the result of variable apij to be as follows: apij=np.array([[[0,1,0,0,0,0],[1,0,0,0,0,0],[0,0,0,1,0,0],[0,0,1,0,0,0],[0,0,0,0,0,1],[0,0,0,0,1,0...
-
FEI XUE commented,
Mr.Jonasz Thanks for your reply. This is my code. space=gurobipy.Model('matchpattern')n=6nn=15apij=space.addVars(range(1,nn+1), range(1,n+1), range(1,n+1),vtype=gurobipy.GRB.BINARY)、 space.update()...
-
FEI XUE created a post,
How to constrain my variables
OngoingI have a three-dimensional binary variable apij[p,i,j].When p is different, for example there are p1 and p2. What constraints should I add to make the ixj matrix corresponding to p1 different from ...
-
FEI XUE created a post,
How to display more outputs?
AnsweredI wrote a program and output all feasible solutions at the same time.But when the number of feasible solutions increases, I cannot view all the outputs.How can I make the output window display more...
-
FEI XUE commented,
Mr.Najman Thank you for your response. I will pay attention at next time.
-
FEI XUE created a post,
How to view the result history?
AnsweredDear staff: I closed Spyder after gurobi calculated the result due to my mistake.I haven't had time to see the results.Can I still find the calculated result? Thank you very much!
-
FEI XUE commented,
Mr. Towle thank you for your reply. I will try again.