max
Syntax
y = max(x)
y = max(x,z)
y = max(x,[],dim)
[y,loc] = max(x,[],dim)
Operator implementation
The operator has support for both convex models where a graph representation can be used, and nonconvex scenarios where a mixed-integer model is required.
If the location index loc is requested, an integer model will always be required.