SeparationResults
(class from pyomo.contrib.pyros.solve_data
)
- class pyomo.contrib.pyros.solve_data.SeparationResults(local_separation_loop_results, global_separation_loop_results)[source]
Bases:
object
Container for results of PyROS separation problem routine.
- Parameters:
local_separation_loop_results (None or SeparationLoopResults) – Local separation problem loop results.
global_separation_loop_results (None or SeparationLoopResults) – Global separation problem loop results.
- local_separation_loop_results
Local separation results. If separation problems were not solved locally, then this attribute is set to None.
- Type:
None or SeparationLoopResults
- global_separation_loop_results
Global separation results. If separation problems were not solved globally, then this attribute is set to None.
- Type:
None or SeparationLoopResults
- __init__(local_separation_loop_results, global_separation_loop_results)[source]
Initialize self (see class docstring).
Methods
__init__
(local_separation_loop_results, ...)Initialize self (see class docstring).
get_violating_attr
(attr_name)If separation problems solved globally, returns value of attribute of global separation loop results.
Attributes
For problems where the uncertainty set is of type DiscreteScenarioSet, True if last master problem solved explicitly accounts for all scenarios in the uncertainty set, False otherwise.
Auxiliary parameter values accompanying self.violating_param_realization.
True if
found_violation
attribute for main separation loop results is True, False otherwise.Main separation loop results.
Return True if separation results certify that first-stage solution is robust, False otherwise.
None or ComponentMap: Scaled second-stage inequality constraint violations for maximally violating separation problem solution reported in local or global separation loop results.
True if global separation loop was invoked, False otherwise.
true if local separation loop was invoked, False otherwise.
True if subsolver error found for local or global separation loop, False otherwise.
True if time out found for local or global separation loop, False otherwise.
Return list of violated second-stage inequality constraints.
Uncertain parameter values for maximally violating separation problem solution reported in local or global separation loop results.
Second-stage and state variable values for maximally violating separation problem solution reported in local or global separation loop results.
Second-stage inequality constraint corresponding to the separation solution chosen for the next master problem.
Member Documentation
- get_violating_attr(attr_name)[source]
If separation problems solved globally, returns value of attribute of global separation loop results.
Otherwise, if separation problems solved locally, returns value of attribute of local separation loop results. If local separation loop results specified, return value of attribute of local separation loop results.
Otherwise, if global separation loop results specified, return value of attribute of global separation loop results.
Otherwise, return None.
- property all_discrete_scenarios_exhausted
For problems where the uncertainty set is of type DiscreteScenarioSet, True if last master problem solved explicitly accounts for all scenarios in the uncertainty set, False otherwise.
- Type:
- property auxiliary_param_values
Auxiliary parameter values accompanying self.violating_param_realization.
- property found_violation
True if
found_violation
attribute for main separation loop results is True, False otherwise.- Type:
- property main_loop_results
Main separation loop results. In particular, this is considered to be the global loop result if solved globally, and the local loop results otherwise.
- Type:
- property robustness_certified
Return True if separation results certify that first-stage solution is robust, False otherwise.
- Type:
- property scaled_violations
None or ComponentMap: Scaled second-stage inequality constraint violations for maximally violating separation problem solution reported in local or global separation loop results. If no such solution found, (i.e.
worst_case_ss_ineq_con
set to None for both local and global loop results), then None is returned.
- property subsolver_error
True if subsolver error found for local or global separation loop, False otherwise.
- Type:
- property time_out
True if time out found for local or global separation loop, False otherwise.
- Type:
- property violated_second_stage_ineq_cons
Return list of violated second-stage inequality constraints.
- property violating_param_realization
Uncertain parameter values for maximally violating separation problem solution reported in local or global separation loop results. If no such solution found, (i.e.
worst_case_ss_ineq_con
set to None for both local and global loop results), then None is returned.
- property violating_separation_variable_values
Second-stage and state variable values for maximally violating separation problem solution reported in local or global separation loop results. If no such solution found, (i.e.
worst_case_ss_ineq_con
set to None for both local and global loop results), then None is returned.- Type:
None or ComponentMap
- property worst_case_ss_ineq_con
Second-stage inequality constraint corresponding to the separation solution chosen for the next master problem.
- Type: