Ruoyun Chen
- Total activity 10
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 3
Posts
Recent activity by Ruoyun Chen-
Making variables equal to each other if the solution of them are non-zero: how to add such constraint?
AnsweredHi, Suppose I have these variable: x1, x2, x3, ..., xn The constraint I want to add is: if xi>0 and xj>0: then f(xi)=g(xj), where f and g are some operations of xi and xj. I have already added ind...
-
Different upper bound and lower bound for a list of variables
AnsweredHi, I'm using m.addVars(Candidate, name="load") where Candidate is a tuple list, looks like: ( 1 , 1 ) ( 1 , 2 ) ( 1 , 3 ) ( 2 , 1 ) ( 2 , 2 ) ( 2 , 3 ) ( 3 , 1 ) ... However, I wan...
-
Add Conditional Constraint
AnsweredHi, I'm having constraints that should be activated once the solution of one variable is greater than a certain number. For example: I have two variables x and y. What I want to implement is: if...