get_terminal_penalty
(function from pyomo.contrib.mpc.modeling.terminal
)
- pyomo.contrib.mpc.modeling.terminal.get_terminal_penalty(variables, time_set, target_data, weight_data=None, variable_set=None)[source]
Returns an Expression penalizing the deviation of the specified variables at the final point in time from the specified target
- Parameters:
variables (List) – List of time-indexed variables that will be penalized
time_set (Set) – Time set that indexes the provided variables. Penalties are applied at the last point in this set.
target_data (ScalarData) – ScalarData object containing the target for (at least) the variables to be penalized
weight_data (ScalarData (optional)) – ScalarData object containing the penalty weights for (at least) the variables to be penalized
variable_set (Set (optional)) – Set indexing the list of variables provided, if such a set already exists
- Returns:
Set indexing the list of variables provided and an Expression, indexed by this set, containing the weighted penalty expressions
- Return type: