The SUMO toolbox
2018a
|
Manages several constraint classes. More...
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 |
Manages several constraint classes.
Parses configuration and creates the constraints objects. Accesible by all components of SUMO that need constraints.
|
inline |
Class constructor.
config | NodeConfig object |
|
inline |
returns all constraint classes
c | cell array of constraint objects |
|
inline |
returns the constraint values for all samples
samples | sample matrix |
constraintValues | - values of the computed constraints |
|
inline |
returns whether there are constraints or not
yes | boolean |
|
inline |
Called when the number of samples changes.
Forwarded to all constraints
|
inline |
returns all non-linear constraints
c | cell array of nonlinear constraints |
|
inline |
calculates the maximum violation of the constraints for one sample
x | one sample |
out | amount of violation |
|
inline |
checks if one sample satisfies all constraints
sample | one sample |
success | boolean |
|
inline |
checks if a set of samples satisfies all constraints
samples | sample matrix |
indices | indices to the samples that satisfy all constraints |
var autoSampledInputs |
var constraints |
var inDim |