The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
ConstraintManager Class Reference

Manages several constraint classes. More...

Inheritance diagram for ConstraintManager:
Inheritance graph
[legend]

Public Member Functions

function ConstraintManager (var config)
 Class constructor. More...
 
function initNewSamples (var state)
 Called when the number of samples changes. More...
 
function satisfySample (var sample)
 checks if one sample satisfies all constraints More...
 
function satisfySamples (var samples)
 checks if a set of samples satisfies all constraints More...
 
function getConstraintValues (var samples)
 returns the constraint values for all samples More...
 
function returnHighestViolation (var x)
 calculates the maximum violation of the constraints for one sample More...
 
function getConstraints ()
 returns all constraint classes More...
 
function nonlcon ()
 returns all non-linear constraints More...
 
function hasConstraints ()
 returns whether there are constraints or not More...
 

Public Attributes

var constraints
 
var autoSampledInputs
 
var inDim
 

Detailed Description

Manages several constraint classes.

Parses configuration and creates the constraints objects. Accesible by all components of SUMO that need constraints.

Constructor & Destructor Documentation

function ConstraintManager ( var  config)
inline

Class constructor.

Parameters
configNodeConfig object
Returns
Instance of the ConstraintManager class

Member Function Documentation

function getConstraints ( )
inline

returns all constraint classes

Return values
ccell array of constraint objects
function getConstraintValues ( var  samples)
inline

returns the constraint values for all samples

Parameters
samplessample matrix
Return values
constraintValues- values of the computed constraints
function hasConstraints ( )
inline

returns whether there are constraints or not

Return values
yesboolean
function initNewSamples ( var  state)
inline

Called when the number of samples changes.

Forwarded to all constraints

function nonlcon ( )
inline

returns all non-linear constraints

Return values
ccell array of nonlinear constraints
function returnHighestViolation ( var  x)
inline

calculates the maximum violation of the constraints for one sample

Parameters
xone sample
Return values
outamount of violation
function satisfySample ( var  sample)
inline

checks if one sample satisfies all constraints

Parameters
sampleone sample
Return values
successboolean
function satisfySamples ( var  samples)
inline

checks if a set of samples satisfies all constraints

Parameters
samplessample matrix
Return values
indicesindices to the samples that satisfy all constraints

Member Data Documentation

var autoSampledInputs
var constraints
var inDim

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