Skip to Main Content Skip to Search
Product Documentation

nEvaluateConstraint - Natural evaluation of optimization constraints

Syntax

Y = nEvaluateConstraint(optimstore, x)
Y = nEvaluateConstraint(optimstore, x, itemNames)

Description

A method of cgoptimstore.

Y = nEvaluateConstraint(optimstore, X) evaluates all of the optimization constraints at the free variable values x. X must be 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. The raw values of the constraints are returned in Y, which is of size (NPoints-by-NItems) where NItems is the number of constraints in the optimization.

Y = nEvaluateConstraint(optimstore, X, itemNames) evaluates the constraints specified in the cell array of strings, itemNames, at the free variable values X. The raw values of the constraints are returned in Y, which is of size (NPoints-by-NItems) where NItems is the number of constraints listed in itemNames.

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