pub struct BranchOpfControl {
pub tap_mode: TapMode,
pub tap_min: f64,
pub tap_max: f64,
pub tap_step: f64,
pub phase_mode: PhaseMode,
pub phase_min_rad: f64,
pub phase_max_rad: f64,
pub phase_step_rad: f64,
}Expand description
OPF tap/phase optimization parameters for a branch.
Fields§
§tap_mode: TapModeTap-ratio control mode for AC-OPF (default: Fixed).
tap_min: f64Minimum tap ratio (pu) when tap_mode = Continuous. Typical: 0.9.
tap_max: f64Maximum tap ratio (pu) when tap_mode = Continuous. Typical: 1.1.
tap_step: f64Discrete tap step size (pu). Used for post-solve rounding in discrete AC-OPF.
When > 0, the continuous NLP tap solution is rounded to the nearest
tap_min + n * tap_step value. 0.0 = continuous (no rounding).
Typical OLTC: 0.00625 (1/160, 16 steps over +/-10%).
phase_mode: PhaseModePhase-shifter control mode for AC-OPF (default: Fixed).
phase_min_rad: f64Minimum phase shift (radians) when phase_mode = Continuous. Typical: -30 deg.
phase_max_rad: f64Maximum phase shift (radians) when phase_mode = Continuous. Typical: 30 deg.
phase_step_rad: f64Discrete phase-shift step size (radians). Used for post-solve rounding.
When > 0, the continuous NLP phase solution is rounded to the nearest
discrete step. 0.0 = continuous (no rounding).
Trait Implementations§
Source§impl Clone for BranchOpfControl
impl Clone for BranchOpfControl
Source§fn clone(&self) -> BranchOpfControl
fn clone(&self) -> BranchOpfControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more