Skip to Main Content Skip to Search
Product Documentation

getNumConstraint - Return number of constraints per label

Syntax

ncon = getNumConstraint(optimstore)
ncon = getNumConstraint(optimstore, conLabels)

Description

Return the number of constraints per label. A method of cgoptimstore.

ncon = getNumConstraint(optimstore) returns the number of constraints that will be returned from an evaluation of each labeled constraint. For example, consider an optimization that has a sum constraint over a set of points, S, and a point constraint to be evaluated at each member of S. NCON will return [1 r], where r is the number of points in S.

ncon = getNumConstraint(optimstore, conLabels) returns the number of constraints from an evaluation of the defined constraints.

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