! Evaluates each cost term for given decision variables and parameters. @param x The values for the decision variables. @param p The values for the parameters. @return List corresponding to each cost term evalauted at x, p.
(
self, x: Dict[str, ArrayType], p: Dict[str, ArrayType]
)