|
<< Click to Display Table of Contents >> FIND |
![]() ![]()
|
The FIND statement is typically used together with DECOMP. For a given variable x, the FIND statement finds the equations that contain x. In addition, FIND can find the shortest path between two variables (traversing through model equations).
Note that for GAMS models, decomp x; will typically open up a FIND window corresponding to find x;.

Mouse use •You can use mouse-hovering on equations and on the variables at the bottom (click to select/retain a variable). •Clicking an equation opens a DECOMP window. •Ctrl-click selects/retains an equation, to look at it further in the lower part of the FIND window. |
find variable ;
find variable TO variable ;
TO |
When using ... TO ... , Gekko will find the shortest path between to variables in a model. |
•If no period is given inside the <...> angle brackets, the global period is used (cf. TIME).
The following statement finds those equations that contain the variable x.
find x; |
The statement
find x[a] to y; |
finds the shortest path between x[a] and y, traversing through model equations.