sdo.evaluate
Evaluate cost function for samples
Syntax
Description
[
evaluates the cost function, y,info]
= sdo.evaluate(fcn,params)fcn, for samples of the parameter
space specified by params. The software generates a table of
samples based on the parameter space specifications in
params.
If
paramsis ansdo.ParameterSpaceobject, thensdo.evalutegenerates random samples according to theParameterDistributions,RankCorrelation, andOptionsproperties of the parameter space.If
paramsis ansdo.GriddedSpaceobject, thensdo.evalutegenerates a grid of samples according to theParameterValuesandOptionsproperties of the parameter space.
The function specified by fcn takes the sample values and
computes model goal values. A model goal can be a cost (objective), constraint, or
assessment of difference between experimental data and model simulation.
y is a table containing the results of applying
fcn to each of the samples. Additional evaluation
information is returned in info.
[
evaluates the cost function for the specified parameter samples. For this syntax,
you can specify y,info]
= sdo.evaluate(fcn,params,param_samples)params as one of these options:
An
sdo.ParameterSpaceobjectAn
sdo.GriddedSpaceobjectA vector of parameter objects, which you typically generate using
sdo.getParameterFromModel
You typically generate the table of parameter samples
param_samples using sdo.sample.
[
generates parameter samples and evaluates the cost function for the generated
parameter samples. You specify the number of parameter samples to generate in
y,info]
= sdo.evaluate(fcn,params,num_samples)num_samples. For this syntax, you can specify
params as one of these options:
An
sdo.ParameterSpaceobjectAn
sdo.GriddedSpaceobject
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2014aSee Also
sdo.EvaluateOptions | sdo.optimize | sdo.sample | sdo.analyze | sdo.ParameterSpace | sdo.GriddedSpace