User Tools

Site Tools


gams:formulate_logical_expressions_in_equations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
gams:formulate_logical_expressions_in_equations [2008/09/25 17:00]
support
gams:formulate_logical_expressions_in_equations [2009/03/05 17:18]
support
Line 1: Line 1:
 ====== How do I formulate logical expressions in equations? ====== ====== How do I formulate logical expressions in equations? ======
  
-GAMS does not reformulate logical expressions. You need to do this by hand. If you need help coming up with the right model you should try to read HP Willams ​Book on Modeling (http://​www.amazon.com/​Model-Building-Mathematical-Programming-4th/​dp/​0471997889). It explains how to use the ''​bigM''​ method to linearize logical constraints.+GAMS does not reformulate logical expressions. You need to do this by hand. If you need help coming up with the right model you should try to read HP Williams ​Book on Modeling (http://​www.amazon.com/​Model-Building-Mathematical-Programming-4th/​dp/​0471997889). It explains how to use the ''​bigM''​ method to linearize logical constraints.
  
 For example, if you have a logical expression ''​i=1 <=> a > b''​ then you can reformulate this as For example, if you have a logical expression ''​i=1 <=> a > b''​ then you can reformulate this as
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/formulate_logical_expressions_in_equations.txt ยท Last modified: 2013/08/05 10:00 by support