CGO Setting Options: Difference between revisions

From TomWiki
Jump to navigationJump to search
(Created page with "{{Part Of Manual|title=the CGO Manual|link=CGO Manual}} All control parameters can be set directly from Matlab. The parameters can be set as subfields in the ''Prob.CGO'...")
 
No edit summary
 
Line 13: Line 13:


A complete description of the available CGO parameters can be found in [[CGO Solver Reference]].
A complete description of the available CGO parameters can be found in [[CGO Solver Reference]].
[[Category:CGO]]

Latest revision as of 07:07, 4 March 2014

Notice.png

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.