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

View File

@ -22,7 +22,10 @@ class Bundle(BaseModel):
return TestResponseFunction(irt_model).calculate(self.items,
theta=theta)
def tif_sum(self, solver_run):
def tif_trf_sum(self, solver_run):
return self.__trf_sum(solver_run) + self.__tif_sum(solver_run)
def __tif_sum(self, solver_run):
total = 0
for target in solver_run.objective_function.tcc_targets:
@ -30,7 +33,7 @@ class Bundle(BaseModel):
return total
def trf_sum(self, solver_run):
def __trf_sum(self, solver_run):
total = 0
for target in solver_run.objective_function.tcc_targets:

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: