STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_robust_ddp_safety_filter.TestSafetyFilter Class Reference
Inheritance diagram for test_robust_ddp_safety_filter.TestSafetyFilter:
[legend]
Collaboration diagram for test_robust_ddp_safety_filter.TestSafetyFilter:
[legend]

Public Member Functions

 setUp (self)
 test_tube_violates_constraints_ullage_max (self)
 test_tube_violates_constraints_copv_min (self)
 test_tube_violates_constraints_mr (self)
 test_tube_violates_constraints_safe (self)
 test_generate_action_candidates (self)
 test_compute_action_cost (self)
 test_filter_action_safe (self)
 test_filter_action_unsafe_ullage (self)
 test_filter_action_unsafe_mr (self)
 test_filter_action_clamping (self)
 test_find_best_safe_action (self)

Public Attributes

 cfg
 x_normal
 x_high_ullage = self.x_normal.copy()
 x_low_copv = self.x_normal.copy()
 state
 engine_wrapper = Mock(spec=EngineWrapper)

Detailed Description

Test safety filter.

Definition at line 20 of file test_robust_ddp_safety_filter.py.

Member Function Documentation

◆ setUp()

test_robust_ddp_safety_filter.TestSafetyFilter.setUp ( self)
Set up test fixtures.

Definition at line 23 of file test_robust_ddp_safety_filter.py.

◆ test_compute_action_cost()

◆ test_filter_action_clamping()

◆ test_filter_action_safe()

◆ test_filter_action_unsafe_mr()

◆ test_filter_action_unsafe_ullage()

◆ test_find_best_safe_action()

◆ test_generate_action_candidates()

◆ test_tube_violates_constraints_copv_min()

◆ test_tube_violates_constraints_mr()

◆ test_tube_violates_constraints_safe()

◆ test_tube_violates_constraints_ullage_max()

Member Data Documentation

◆ cfg

◆ engine_wrapper

◆ state

test_robust_ddp_safety_filter.TestSafetyFilter.state
Initial value:
= ControllerState(
w_bar_array=np.ones(8) * 0.1e6, # 0.1 MPa uncertainty per component
)

Definition at line 58 of file test_robust_ddp_safety_filter.py.

Referenced by test_filter_action_clamping(), test_filter_action_safe(), test_filter_action_unsafe_mr(), test_filter_action_unsafe_ullage(), and test_find_best_safe_action().

◆ x_high_ullage

test_robust_ddp_safety_filter.TestSafetyFilter.x_high_ullage = self.x_normal.copy()

Definition at line 51 of file test_robust_ddp_safety_filter.py.

Referenced by test_filter_action_unsafe_ullage().

◆ x_low_copv

test_robust_ddp_safety_filter.TestSafetyFilter.x_low_copv = self.x_normal.copy()

Definition at line 55 of file test_robust_ddp_safety_filter.py.

◆ x_normal

test_robust_ddp_safety_filter.TestSafetyFilter.x_normal

The documentation for this class was generated from the following file: