commonpower.modeling.robust_cost.BaseRobustCost
- class BaseRobustCost(discount_factor: float = 1.0)[source]
Bases:
objectUtility class to create a robust cost function from a given cost function expression.
- Parameters:
discount_factor (float, optional) – Discount rate to give lower importance to costs further in the future. The logic is: sum_t (cost_t * df**t). Defaults to 1.0.
Methods
Adds additional constraints for the robust cost function to the given model.
Initializes the robust cost function.
Creates the objective function for the robust cost.
- add_additional_constraints(model: ConcreteModel) None[source]
Adds additional constraints for the robust cost function to the given model.
- Parameters:
model (ConcreteModel) – Model instance.