let the model calculate
This commit is contained in:
+5
-2
@@ -35,7 +35,10 @@ class Item(BaseModel):
|
||||
return True
|
||||
return False
|
||||
|
||||
def iif_sum(self, solver_run):
|
||||
def iif_irf_sum(self, solver_run):
|
||||
return self.__iif_sum(solver_run) + self.__irf_sum(solver_run)
|
||||
|
||||
def __iif_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tif_targets:
|
||||
@@ -43,7 +46,7 @@ class Item(BaseModel):
|
||||
|
||||
return total
|
||||
|
||||
def irf_sum(self, solver_run):
|
||||
def __irf_sum(self, solver_run):
|
||||
total = 0
|
||||
|
||||
for target in solver_run.objective_function.tif_targets:
|
||||
|
||||
Reference in New Issue
Block a user