Working simulation

The simulation now works. I've allowed the program to endogenize more
variables than it has constraints. This means that answers may be
sensitive to starting values.