irt-service/app/models/objective_function.py
2021-09-04 23:50:22 -04:00

13 lines
398 B
Python

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}