! Evaluates the cost function for given decision variables x and parameters p. @param x The values for the decision variables. @param p The values for the parameters. @return The cost that results from x and p.
(
self, x: Dict[str, ArrayType], p: Dict[str, ArrayType]
)