Ask Your Question

Revision history [back]

The return value of solve (when called in this way) is a list of lists of equations.

So, H(critique) is trying to evaluate H at a list of equations, which is not supported.

Instead, you can substitute a list of equations into H:

for critique in Cr:

Alternatively you can pass the keyword argument solution_dict=True to the solve command, so that the return value becomes a list of dictionaries, each of which can be passed into H.