moved models to separate folder

This commit is contained in:
Josh Burman
2021-09-04 23:50:22 -04:00
parent 1b7c56ac3e
commit c4fdd68af2
9 changed files with 84 additions and 58 deletions

View File

@ -0,0 +1,12 @@
from pydantic import BaseModel
from typing import Dict
from models.targets import Targets
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
weight: Dict = {'tif': 1, 'tcc': 1}