pypowsybl.loadflow.ValidationParameters¶
- class ValidationParameters(threshold=None, verbose=None, loadflow_name=None, epsilon_x=None, apply_reactance_correction=None, loadflow_parameters=None, ok_missing_values=None, no_requirement_if_reactive_bound_inversion=None, compare_results=None, check_main_component_only=None, no_requirement_if_setpoint_outside_power_bounds=None)[source]¶
Parameters for a loadflow validation.
All parameters are first read from you configuration file, then overridden with the constructor arguments.
- Parameters:
threshold (float | None) – Define the margin used for values comparison. The default value is
0.verbose (bool | None) – Define whether the load flow validation should run in verbose or quiet mode.
loadflow_name (str | None) – Implementation name to use for running the load flow.
epsilon_x (float | None) – Value used to correct the reactance in flows validation. The default value is
0.1.apply_reactance_correction (bool | None) – Define whether small reactance values have to be fixed to epsilon_x or not. The default value is
False.loadflow_parameters (Parameters | None) – Parameters that are common to loadflow and loadflow validation.
ok_missing_values (bool | None) – Define whether the validation checks fail if some parameters of connected components have NaN values or not. The default value is
False.no_requirement_if_reactive_bound_inversion (bool | None) – Define whether the validation checks fail if there is a reactive bounds inversion (maxQ < minQ) or not. The default value is
False.compare_results (bool | None) – Should be set to
Trueto compare the results of 2 validations, i.e. print output files with data of both ones. The default value isFalse.check_main_component_only (bool | None) – Define whether the validation checks are done only on the equiments in the main connected component or in all components. The default value is
True.no_requirement_if_setpoint_outside_power_bounds (bool | None) – Define whether the validation checks fail if there is a setpoint outside the active power bounds (targetP < minP or targetP > maxP) or not. The default value is
False.
Methods
__init__([threshold, verbose, ...])to_c_parameters()