Skip to main content

IpoptGetWorkingSet

Function IpoptGetWorkingSet 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn IpoptGetWorkingSet( ipopt_problem: IpoptProblem, bound_status_out: *mut IpoptBoundStatus, cons_status_out: *mut IpoptConsStatus, ) -> Bool
Expand description

Retrieve the working set produced by the most recent SQP solve (algorithm = active-set-sqp). Buffer sizes are n for bound_status_out and m for cons_status_out. Pass NULL for either to skip that side.

Returns TRUE (1) on success, FALSE (0) if there is no working set to retrieve (e.g. no SQP solve has run, the IPM path was used, or the very first KKT check declared optimality before solving any QP).

ยงSafety

ipopt_problem must be a valid IpoptProblem. Output buffers (when non-NULL) must be sized at least n and m respectively.