# CGO Setting Options

From TomWiki

Jump to navigationJump to search
This page is part of the CGO Manual. See CGO Manual. |

All control parameters can be set directly from Matlab.

The parameters can be set as subfields in the *Prob.CGO*, *Prob.optParam *and *Prob.GO *structures. The following example shows how to set a limit on the maximum number of iterations when using a global subsolver to solve some sub problem and the global search idea (surface search strategy) used by *rbfSolve*. The major thing is most often to set the limit *MaxFunc*, defining how many costly function evaluations the CGO solver is allowed to use.

Prob = glcAssign(...) % Setup problem, see help glcAssign for more information Prob.GO.MaxIter = 50; % Setting the maximum number iterations. Prob.CGO.idea = 1; % Idea set to first option. Prob.optParam.MaxFunc = 90; % Maximal number of costly function evaluations

A complete description of the available CGO parameters can be found in CGO Solver Reference.