Skip to main content

PerturbationSink

Trait PerturbationSink 

Source
pub trait PerturbationSink {
    // Required methods
    fn append_info(&self, s: &str);
    fn set_regu_x(&self, v: f64);

    // Provided methods
    fn iter_count(&self) -> i32 { ... }
    fn debug(&self, _msg: &str) { ... }
}
Expand description

Sink for the two diagnostic writes the handler performs.

The handler is otherwise free-standing, so this is all that stood between it and being shared. pounce-algorithm implements it over its IpoptDataHandle; pounce-qp (which cannot depend on pounce-algorithm — the dependency runs the other way) passes None or its own sink.

Required Methods§

Source

fn append_info(&self, s: &str)

Append to the iteration line’s info string (upstream info_string).

Source

fn set_regu_x(&self, v: f64)

Record the primal regularization actually applied (upstream info_regu_x), for the lg(rg) column.

Provided Methods§

Source

fn iter_count(&self) -> i32

Current iteration index, for the env-gated POUNCE_DBG_PERT trace.

Source

fn debug(&self, _msg: &str)

Emit one debug line. Defaulted to a no-op so this crate stays dependency-light — tracing wiring belongs to the caller.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§