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
Next revision Both sides next revision
gams:formulate_logical_expressions_in_equations [2008/09/23 12:18]
support
gams:formulate_logical_expressions_in_equations [2008/09/25 17:00]
support
Line 5: Line 5:
 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
  
-''​a %%<=%% b + bigM*i''​+''​a %%<=%% b + bigM * i''​
  
-''​a > b - bigM*(1-i)''​+''​a > b - bigM * (1-i)''​
  
 Try to evaluate: If ''​i=1''​ then the first constraint will not be effective if ''​bigM''​ is big enough while the second equation will read ''​a>​b''​. If ''​i=0'',​ the first constraint ensures ''​a<​=b''​ while the second will Try to evaluate: If ''​i=1''​ then the first constraint will not be effective if ''​bigM''​ is big enough while the second equation will read ''​a>​b''​. If ''​i=0'',​ the first constraint ensures ''​a<​=b''​ while the second will
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/formulate_logical_expressions_in_equations.txt ยท Last modified: 2013/08/05 10:00 by support