Skip to Main Content Skip to Search
Product Documentation

getB - Get linear inequality constraint target values.

Syntax

B = getB(optimstore)

Description

Get the linear inequality constraint target values. A method of cgoptimstore.

B = getB(optimstore) returns the linear inequality constraint target values used in the optimization. B is a (NLINCON-by-1) column vector where NLINCON is the number of linear inequality constraints.

The following code evaluates the linear inequality constraints in the optimization:

A = getA(optimstore);
b = getB(optimstore);
out = A*x - b;

where x is a column vector containing the current free variable values.

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