type/NONNEGATIVE
test if constraint is of the form a >= 0
Calling Sequence
Parameters
Description
Examples
type(expr, 'NONNEGATIVE' )
expr
-
any expression
This is a Boolean function to test if the expression is a constraint of the form 0≤a .
This function is part of the simplex package and can only be used after performing the command with(simplex).
with⁡simplex:
type⁡−a≤0,NONNEGATIVE
true
type⁡0≤a,NONNEGATIVE
type⁡a=0,NONNEGATIVE
false
type⁡0≤a+b,NONNEGATIVE
See Also
simplex
type
Download Help Document