User Tools

Site Tools


gams:use_different_equations_based_on_the_value_of_a_function

Differences

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

Link to this comparison view

gams:use_different_equations_based_on_the_value_of_a_function [2007/08/10 10:56]
127.0.0.1 external edit
gams:use_different_equations_based_on_the_value_of_a_function [2020/05/26 12:57] (current)
Lutz Westermann
Line 1: Line 1:
 ====== Using different equations based on the value of a function ====== ====== Using different equations based on the value of a function ======
-The question is how to have to regimes where different ​equation is enforced based on the value of some function. To be fairly general, use the following statement:+The question is how to arrive at system in which another ​equation is enforced based on the value of function. To be fairly general, use the following statement:
 <​code>​ <​code>​
    z = f(x) when y > 0    z = f(x) when y > 0
Line 23: Line 23:
    yn =L= ymax * (1 - b);    yn =L= ymax * (1 - b);
 </​code>​ </​code>​
-Next, spit the two terms of ''​z''​ into positive and negative parts.+Next, split the two terms of ''​z''​ into positive and negative parts.
 <​code>​ <​code>​
    ​Positive Variable fp, fn, gp, gn;    ​Positive Variable fp, fn, gp, gn;
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY gams/use_different_equations_based_on_the_value_of_a_function.1186736210.txt.gz ยท Last modified: 2007/08/10 10:56 by 127.0.0.1