FEI XUE
- Total activity 21
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 6
Comments
Recent activity by FEI XUE-
Doctor Jonasz Thank you very much. It helps me a lot.
-
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...
-
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...
-
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()...
-
Mr.Najman Thank you for your response. I will pay attention at next time.
-
Mr. Towle thank you for your reply. I will try again.
-
Dear Sir, That's it! I understand. Thank you very much for your answer!
-
Thank you, Sir. Here is the added code. u=Model.addVar(vtype=GRB.INTEGER)Model.addConstr(quicksum((ctt[i,j])**2 for i in range(1,n+1) for j in range(1,n+1))==2*u)
-
Thank you so much for the response, Sir. I added an integer variable u and a constraint objvar=2*u . An error like " Quadratic equality constraints are non-convex. Set NonConvex parameter to 2 to ...