[AMPL 1855] How to model the inequailty constraint

View: New views
1 Messages — Rating Filter:   Alert me  

[AMPL 1855] How to model the inequailty constraint

by Chien-Chung Huang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,
  Recently, I am trying to solve a mixed integer quadratic model.
However, in the model, we have the constraints which some boolean is
not the same as the input variables.
For example,  b1,b2 are the variables.   c1,c2 is the input parameters.
(True or False)
if b1=c1, then b2<> c2.
We model as 2*b1+b2<>2*c1+c2. It doesn't work because it will take
this as a nonquardratic nonlinear constraint.
We also model as abs(b1-c1)+abs(b2-c2)>=1 or using "if" statement. The
result is still the same.
Did anyone solve the same problem before? If you can give me some
suggestion, I will appreciate so much.

Thanks,
Edward Huang
--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price!