FREE: Difference between revisions
Jump to navigation
Jump to search
Restored page from Google Cache, uploaded by John Pye |
No edit summary |
||
| Line 1: | Line 1: | ||
The '''FREE''' keyword is used in the [[METHODS]] section of your model when you want to un-fix a variable, such that ASCEND's solver will attempt to find its value by solving for it. The sense of the word 'free' here is 'to liberate'. | The '''FREE''' keyword is used in the [[METHODS]] section of your model when you want to un-fix a variable, such that ASCEND's solver will attempt to find its value by solving for it. The sense of the word 'free' here is 'to liberate'. | ||
Often the FREE statement is not required, because by default all variables in a model are FREE when the model is created. You might sometimes want to write [[METHODS]] that re-configure your model in certain ways. Following the example from the [[FIX]] page, you might, for example, create the following additional METHOD: | Often the FREE statement is not required, because by default all variables in a model are FREE when the model is created. You might sometimes want to write [[METHODS]] that re-configure your model in certain ways. Following the example from the [[FIX]] page, you might, for example, create the following additional METHOD: | ||
| Line 16: | Line 15: | ||
See also [[FIX]]. | See also [[FIX]]. | ||
[[Category:Documentation]] | |||
[[Category:Syntax]] | [[Category:Syntax]] | ||
Latest revision as of 09:00, 2 August 2010
The FREE keyword is used in the METHODS section of your model when you want to un-fix a variable, such that ASCEND's solver will attempt to find its value by solving for it. The sense of the word 'free' here is 'to liberate'.
Often the FREE statement is not required, because by default all variables in a model are FREE when the model is created. You might sometimes want to write METHODS that re-configure your model in certain ways. Following the example from the FIX page, you might, for example, create the following additional METHOD:
(* add this to the example on the FIX page *) METHOD solve_x; (* reconfigure the model to solve for x such that y=0 *) FREE x; FIX y; y:= 0; END solve_x;
See also FIX.