Move costs() into Actor.
Verify that we are in constrainted equilibrium after solution.
Attempt to align output.
Make residual demand decreasing.
Improve some comments.