Updates to the OptimizerFactory and the MatlabInterface. Better access to EvAClient.
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
function int = setOpt(int, optName, optVal)
|
||||
% Set a single optimset value within the JI instance.
|
||||
% Set a single option value within the JI instance.
|
||||
% Arguments:
|
||||
% int: the JEInterface instance
|
||||
% optName: name of the option to change, e.g. 'MaxFunEvals'
|
||||
% optVal: new value
|
||||
|
||||
opts = optimset(int.opts, optName, optVal);
|
||||
% this only makes sure the option actally exists and is valid
|
||||
makeOptions(int, optName, optVal);
|
||||
|
||||
opts = int.opts;
|
||||
opts.(optName) = optVal;
|
||||
int.opts = opts;
|
Reference in New Issue
Block a user