Rename Nstates, Nsupply, and Ndemand to max_...