147
</pre><p><b>Case 3: Passing input parameters as fields in a structure.</b></p><p>Input parameters can be passed as fields in a structure. Note, though, that since each optimization method uses method specific parameters, it is suggested to start from a structure of the default parameters for a particular method. Once the structure of default parameters has been created, the individual parameters (i.e., fields in the structure) can be changed. Below is an example of this for the <tt>ncg</tt> method.</p><