All Classes Files Functions Variables
LinearConstraint Class Reference

Linear Constraint. More...

Inheritance diagram for LinearConstraint:
Collaboration diagram for LinearConstraint:

Public Member Functions

function LinearConstraint (lb, ub, A)
 gradient matrix. More...
- Public Member Functions inherited from Constraint
function Constraint (lb, ub, xdim, options)
 Constraint(lb,ub) or Constraint(lb,ub,eval_handle) More...
function setSparseStructure (obj, iCfun, jCvar)
 set the sparse structure of the 1st order gradient matrix More...
function getGradientSparseStructure (obj)
function checkGradient (obj, tol, varargin)
 Check the accuracy and sparsity pattern of the gradient. More...
function setName (obj, name)
function disp (obj)
function eval (obj, varargin)
function setBounds (obj, lb, ub)
 revise the bounds for the constraint More...

Protected Member Functions

function constraintEval (obj, x)
- Protected Member Functions inherited from Constraint
virtual function constraintEval (obj, varargin)

Protected Attributes

Property A
Property A_val
- Protected Attributes inherited from Constraint
Property lb
Property ub
Property xdim
Property num_cnstr
Property name
Property ceq_idx
Property cin_idx

Additional Inherited Members

- Public Attributes inherited from Constraint
Property grad_level
Property grad_method
 A string indicating the method to compute gradient. If empty,. More...

Detailed Description

Linear Constraint.

lb <= Ax <= ub. Support the linear constraint being sparse

Constructor & Destructor Documentation

function LinearConstraint ( lb  ,
ub  ,

gradient matrix.

These correspond to iCfun and jCvar parameters from the superclass

lb– The lower bound of the constraint
ub– The upper bound of the constraint
A– A matrix of size num_cnstr x xdim. The linear constraint matrix
Return values

Member Function Documentation

function constraintEval ( obj  ,
Return values

Member Data Documentation

Property A
Property A_val

The documentation for this class was generated from the following file: