Using Named Parameters

Revision as of 04:35, 30 December 2015 by Bbecane (talk | contribs)


When calling a function in Analytica, you can use the conventional method of listing parameters in their standard sequence, or named-parameter syntax, where you type the parameter name, followed by a colon (:), followed by the parameter value. Here is an example:

DefineOptimization(
Decisions: [d1, d2],
Constraints: [c1, c2, c3],
Maximize: x)

Since DefineOptimization() has a large number of optional parameters, named-parameters are much more convenient to write and read. So, we use that method in our examples.

You can view the full parameter declarations from Analytica, in the actual parameter order, by selecting Definition >Optimizer > <function> from the Analytica menu.

See Also

Comments


You are not allowed to post comments.