Abstract Function¶
AbstractFunction¶
- class disropt.functions.abstract_function.AbstractFunction[source]¶
Bases:
object
AbstractFunction class. This should be the parent of all specific (objective) functions.
- subgradient(x, **kwargs)[source]¶
Evaluate the subgradient of the function at a point x
- Parameters
x (
ndarray
) – input point- Raises
ValueError – subgradient is defined only for functions with scalar output
- Return type
- property is_affine¶
- property is_differentiable¶
- property is_quadratic¶