change tif/tcc targets to be more variable

This commit is contained in:
Josh Burman
2021-09-08 11:25:55 -04:00
parent 8ac5d5efdb
commit 4a8952fae3
4 changed files with 11 additions and 14 deletions

View File

@ -1,12 +1,12 @@
from pydantic import BaseModel
from typing import Dict
from typing import Dict, List
from models.targets import Targets
from models.target import Target
class ObjectiveFunction(BaseModel):
# minimizing tif/tcc target value is only option currently
# as we add more we can build this out to be more dynamic
# likely with models representing each objective function type
tif_targets: Targets
tcc_targets: Targets
tif_targets: List[Target]
tcc_targets: List[Target]
weight: Dict = {'tif': 1, 'tcc': 1}