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§
Sourcefn append_info(&self, s: &str)
fn append_info(&self, s: &str)
Append to the iteration line’s info string (upstream info_string).
Sourcefn set_regu_x(&self, v: f64)
fn set_regu_x(&self, v: f64)
Record the primal regularization actually applied (upstream
info_regu_x), for the lg(rg) column.
Provided Methods§
Sourcefn iter_count(&self) -> i32
fn iter_count(&self) -> i32
Current iteration index, for the env-gated POUNCE_DBG_PERT trace.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".