bayesline.api.equity.ObjectiveBase

bayesline.api.equity.ObjectiveBase#

model ObjectiveBase#

Base class for optimizer objectives.

Fields#

Field

Type

Required

Default

Constraints

enabled

bool

No

True

kind

str

Yes

weight

float

No

1.0

gt=0

field enabled: bool [Optional]#

Whether this objective contributes to the optimization problem.

field kind: str [Required]#

Discriminator field for the objective type.

field weight: float [Optional]#

Relative weight of this objective in the combined problem. Only the ratios between objective weights matter; they need not be normalized to sum to one.

Constraints:
  • gt = 0