 Timestamp:
 Dec 30, 2009 12:43:59 AM (10 years ago)
 Location:
 coopr.pysp/stable/2.1
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

coopr.pysp/stable/2.1
 Property svnmergeintegrated changed
/coopr.pysp/trunk merged: 19561957,1974,19781979,1985,1998,2026,2029,2035,20372039,20582062
 Property svnmergeintegrated changed

coopr.pysp/stable/2.1/examples/pysp/forestry/config/rhosetter.cfg
r1754 r2068 4 4 model_instance = self._model_instance 5 5 6 MyRhoFactor = 0.1 6 MyRhoFactorDelta = 0.001 7 MyRhoFactorGamma = 0.0001 8 MyRhoFactorF = 0.1 9 MyRhoFactorZ = 0.01 7 10 8 for t in model_instance.Times :11 for t in model_instance.Times[:1]: 9 12 10 13 for h in model_instance.HarvestCells: 11 self.setRhoAllScenarios( model_instance.delta[h,t] , model_instance.P[h,t] * model_instance.A[h] * MyRhoFactor)14 self.setRhoAllScenarios( model_instance.delta[h,t] , model_instance.P[h,t] * model_instance.A[h] * MyRhoFactorDelta + MyRhoFactorDelta * model_instance.a[h, t] * model_instance.yr[t] * model_instance.A[h] * sum([ model_instance.Q[o, t] for o in model_instance.COriginNodeForCell[h]]) ) 12 15 # .a[h, t] * .A[h] * sum([ model_instance.Q[o, t] for o in model.OriginNodes for h in model.HCellsForOrigin[o]]) 16 # model_instance.a[h, t] * model_instance.A[h] * sum([ model_instance.Q[o, t] for o in model_instance.COriginNodeForCell[h]]) 13 17 14 18 for (i,j) in model_instance.PotentialRoads: 15 self.setRhoAllScenarios( model_instance.gamma[i,j,t], model_instance.C[i,j,t] * MyRhoFactor )19 self.setRhoAllScenarios( model_instance.gamma[i,j,t], model_instance.C[i,j,t] * MyRhoFactorGamma) 16 20 17 21 for (i,j) in model_instance.AllRoads: 18 self.setRhoAllScenarios( model_instance.f[i,j,t], model_instance.D[i,j,t] * MyRhoFactor )22 self.setRhoAllScenarios( model_instance.f[i,j,t], model_instance.D[i,j,t] * MyRhoFactorF) 19 23 20 24 for e in model_instance.ExitNodes: 21 25 #for e in model.ExitNodes: 22 self.setRhoAllScenarios( model_instance.z[e,t], model_instance.R[e,t] * MyRhoFactor )26 self.setRhoAllScenarios( model_instance.z[e,t], model_instance.R[e,t] * MyRhoFactorZ) 23 27
Note: See TracChangeset
for help on using the changeset viewer.