h2integrate.control.control_strategies.controller_opt_problem_state#
Classes
Class for tracking dispatch problem solve state and metrics |
- class h2integrate.control.control_strategies.controller_opt_problem_state.DispatchProblemState#
Class for tracking dispatch problem solve state and metrics
- store_problem_metrics(solver_results, start_time, n_days, objective_value)#
This method takes the solver results and formats them for debugging. The outputs of this method are not actively used in the H2I simulation, but they are useful for debugging and tracking solver performance over time.
NOTE: that this method was brought over from HOPP. The link to the original method is here: NatLabRockies/HOPP
- Parameters:
solver_results – The results object returned by the optimization solver.
start_time – The starting time of the optimization problem.
n_days – The number of days in the optimization horizon.
objective_value – The value of the objective function from the optimization problem.
- value(metric_name, set_value=None)#
- Parameters:
metric_name (str)