let the model calculate

This commit is contained in:
Adrian Manteza
2022-03-10 23:32:18 +00:00
parent 84c34d9a90
commit 26571cffc6
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -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: