Skip to main content

pio_ac_ots_instance_validate_topology

Function pio_ac_ots_instance_validate_topology 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_ac_ots_instance_validate_topology( instance: *const PioCalculationInstance, branch_closed: *const u8, branch_count: usize, switching_cost: *mut f64, error: *mut *mut PioError, ) -> bool
Expand description

Check a complete final branch status vector (one byte per branch in table order, 0 open and 1 closed) against the fixed branches, the budgets, and the islanding policy, and write its switching cost. This does not certify AC feasibility.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements.