Skip to main content

GetPounceComplementarityStats

Function GetPounceComplementarityStats 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn GetPounceComplementarityStats( ipopt_problem: IpoptProblem, stats: *mut PounceComplementarityStats, ) -> Bool
Expand description

What the complementarity driver did on the most recent IpoptSolve (gh#1147): the strategy, what was reported and by which formulation, the iteration totals, the stationarity certificate, the B-stationarity check and the polish — the solve report’s complementarity block as a struct of scalars. The caller sets stats->struct_size = sizeof(PounceComplementarityStats) first. Returns FALSE, leaving stats untouched, on a NULL argument, a struct_size smaller than this release’s size, before any solve, and when the most recent solve did not run the driver (no pairs were declared, or it was refused or failed before the driver returned). The record describes the most recent solve: clearing the pairs afterwards does not erase it, the next solve does.

§Safety

ipopt_problem must be a valid IpoptProblem or NULL. stats, when non-NULL, must point at a writable PounceComplementarityStats (at least struct_size bytes when that is this release’s size or more).