Skip to Main Content Skip to Search
Product Documentation

evaluate - Evaluate optimization objectives and constraints

Syntax

Y = evaluate(optimstore, X)

Description

A method of cgoptimstore.

Evaluate optimization objectives and constraints.

Y = evaluate(optimstore, X) evaluates all of the optimization objectives and constraints at the free variable values X. X is a (NPoints-by-NFreeVar) matrix where NPoints is the number of points to be evaluated and NFreeVar is the number of free variables in the optimization.

Evaluation over data sets is only supported when the free variables are scalar, that is, you cannot perform evaluation over a data set for "sum" optimizations.

Examples

Y = evaluate(optimstore, X, itemnames)

evaluates the objectives and constraints specified in the cell array of strings, itemnames, at the free variable values X. The values of the objectives and constraints are returned in Y, which is of size (NPoints-by-NItems) where NItems is the number of objectives and constraints listed in itemnames. Note that the evaluation of Y is scaled onto [-1 1].

Y = evaluate(optimstore, X, itemnames, datasetname) 

evaluates the specified objectives and constraints at the operating points in the data set specified by the string datasetname. X must be a (Nrows-by-NfreeVar) matrix, where Nrows is the number of rows in the data set.

Y = evaluate(optimstore, X, itemnames, datasetname, rowind) 

evaluates the specified objectives and constraints at the points of datasetname given by rowind. X must be a (NRows-by-NFreeVar) matrix where NRows is the length of ROWIND. ROWIND must be a list of integer indices in the range [1 NumRowsInDataset]. Y is a (Nrows-by-NItems) matrix.

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS