Open jdossgollin opened 6 months ago
OK @luciamra three issues (we can fix one, but then the next will bother you so let's do all three)
Fortunately they're all in the get_action
function:
demand = ParkingGarage.calculate_demand(x.year, sow.demand_growth_rate)
. However, sow
isn't one of the arguments so it down't know what that is. Hint: we have now added demand to the state variable -- can you access it there?capacity = calculate_capacity(x.n_levels)
. Instead, just use capacity = calculate_capacity(x)
, the equation handles the restParkingGarageAction(0)
or 1
I downloaded the code and can reproduce your error, will take a look later today to troubleshoot