FEI XUE
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 6
Posts
Recent activity by FEI XUE-
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...
-
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 ...
-
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...
-
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!
-
TypeError:object of type 'gurobipy.gurobipy.LinExpr' has no len()
AnsweredI need to add some constraints into my model. The code and formula are as follows. for i in range(1, n - 1): for k in range(3, n): BASE.addConstr( ntk3[i, k] == min_...
-
How to add a constraint to express the objective function as an even number?
AnsweredDear staff: I now want to add a constraint, which means that the value of the objective function is even. The objective function is the sum of multiple items, and quicksum() is used. Is it impossi...