   Next: 2.5 A Final Example Up: 2 An introduction to Previous: 2.3 An Example

## 2.4 A Second Example

We now consider a different sort of example, the unconstrained problem, (2.17)

Once again, there are a number of ways of casting this problem in the form (2.1), but the most natural is to consider the argument of each sine function as a group -- the group function is then , , for various values of the parameter . Each group but the last has two nonlinear elements, and  and a single linear element . The last has no linear element and a single nonlinear element, . A single element type, , of the elemental variable, , covers all of the nonlinear elements.

Thus we see that we can consider our objective function to be made up of 1000 nontrivial groups, all of the same type, so we will have to provide our optimization procedure with function and derivative values for these at some stage. There are 1999 nonlinear elements, two from each group except the last, but all of the same type and again we shall have to provide function and derivative values for these. As there is so much structure to this problem, it would be inefficient to pass the data group-by-group and element-by-element. Clearly, one would like to specify such repetitious structures using a convenient shorthand.   Next: 2.5 A Final Example Up: 2 An introduction to Previous: 2.3 An Example  