IndicatorFunctionParams ¶
Bases: BaseModel
Implements inequality constraints via indicator functions.
Attributes:
Name | Type | Description |
---|---|---|
penalty |
float | None
|
Custom penalty factor for indicator functions. If none set, automatically determined through upper and lower bounds. |
penalty_scaling |
float
|
Scaling of automatically determined penalty factor. Default: 2 |
penalty
class-attribute
instance-attribute
¶
penalty: float | None = Field(
default=None,
ge=0,
description="Custom penalty factor for indicator functions. If none set, automatically determined through upper and lower bounds.",
)
penalty_scaling
class-attribute
instance-attribute
¶
penalty_scaling: float = Field(
default=2,
ge=0,
description="Scaling of automatically determined penalty factor. Default: 2",
)