Home > mpt > @polytope > nconstr.m

# nconstr

## PURPOSE

NCONSTR Returns number of constraints that form an H-representation of a polytope

## SYNOPSIS

function nc = nconstr(P)

## DESCRIPTION

```NCONSTR Returns number of constraints that form an H-representation of a polytope

nx = nconstr(P)

---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
Returns number of constraints (i.e. rows of the H matrix)

NOTE: If P is a polytope array, nconstr(P) returns the total number of
hyperplanes.

---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
P   - Polytope

---------------------------------------------------------------------------
OUTPUT
---------------------------------------------------------------------------
nc  - number of constraints for the given polytope P
(returns a vector of dimensions if P is a polytope array)

## CROSS-REFERENCE INFORMATION

This function calls:
• length LENGTH Returns number of regions over which the explicit control law is defined
• end END Returns the last element in a given polytope array
• length LENGTH Returns number of elements in a polytope array
• size SIZE Returns size of the given polytope object
This function is called by:
• domain DOMAIN Computes polytope that is mapped to an another polytope using affine map
• minus MINUS Pontryagin difference
• plus PLUS Minkowski sum of two polytopes
• projection PROJECTION Projection of a polytope or a polytope array
• regiondiffXU REGIONDIFFXU Computes region difference in lifted XU space
• mpt_getCommonSOSLyapFct MPT_GETCOMMONSOSLYAPFCT Calculates Common SOS Lyapunov function for system with additive disturbance
• mpt_getPWPLyapFct MPT_GETPWPLYAPFCT Calculates Piecewise Polynomial (sum of squares) Lyapunov function
• mpt_getPWQLyapFct MPT_GETPWQLYAPFCT Calculates PWQ Lyapunov function
• mpt_maxCtrlSet MPT_MAXCTRLSET Computes the maximal robust control invariant set C_inf
• mpt_greedyMerging MPT_GREEDYMERGING Greedy merging of polyhedra
• mpt_mplp_ver1 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver2 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver3 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver4 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver5 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver6 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_mplp_ver7 MPT_MPLP Explicitly solves the given linear program (LP)
• mpt_randPWASys MPT_RANDPWASYS generates random PWA systems
• mpc_buildmatFAST ===============================================================================
• mpt_optInfControl MPT_OPTINFCONTROL Solves the infinite-time constrained optimal control problem for LTI systems
• mpt_plotPWA MPT_PLOTPWA Plots a PWA function defined over a given polyhedral partition
• mpt_plotU MPT_PLOTU For a given explicit controller, plots value of the control action
• mpt_mpqp MPT_MPQP Explicitly solves the given quadratic program (QP)

Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003