issatisfied
Constraint satisfaction of an optimization problem at a set of points
Since R2024a
Syntax
Description
Check constraint satisfaction.
issatisfied checks constraint satisfaction at a point or set of
points for several argument types:
A constraint object, which is an
OptimizationConstraintobject, anOptimizationEqualityobject, or anOptimizationInequalityobject. For a constraint object,issatisfiedchecks all constraints at a single point.A problem object, which is an
OptimizationProblemobject or anEquationProblemobject. For a problem object that contains constraints,issatisfiedcan check satisfaction of multiple constraints at multiple points, and also checks the bound and integer constraints. For definitions of integer constraints, seevar.An optimization variable, which is an
OptimizationVariableobject. For an optimization variable,issatisfiedchecks whether the variable satisfies its bound and integer constraints at a point, where the integer constraint means integer, semi-integer, or semicontinuous constraints. For definitions of integer constraints, seevar.
For all argument types, issatisfied can check the constraint
satisfaction to within a settable tolerance.
[
also returns the argument allsat,sat] = issatisfied(___)sat that is an
OptimizationValues object when checking problem objects, or is a
logical array when checking variables or constraint objects. An
OptimizationValues object contains Constraints or
Equation properties that are logical indications of the constraint
satisfactions for the associated constraints or equation at the corresponding evaluation
point, and contains Variables properties that are logical arrays matching
the size of the variables in prob and indicating the satisfaction of bound and integer
constraints.
Examples
Input Arguments
Output Arguments
More About
Tips
The toolbox has three functions to compute the feasibility of points.
infeasibility— Compute the numeric violation value of anOptimizationVariable(with respect to its bound and type constraints) or anOptimizationConstraintat a point.issatisfied— Check if the infeasibility of anOptimizationVariableor anOptimizationConstraintor components of anOptimizationProblemorEquationProblemat a point exceed some threshold.evaluate— Compute the value of anOptimizationVariable,OptimizationExpression,OptimizationConstraint, or components of anOptimizationProblemorEquationProblemat a point.






