1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! SQP iterate state — `(x, λ_g, λ_x)` plus the working set
//! carried across QP subproblem solves for warm-starting (the
//! §5/§6 design-note contract).
//!
//! Distinct from [`crate::iterates_vector::IteratesVector`] (which
//! is IPM-shaped with slacks and barrier multipliers). The SQP
//! iterate is simpler: primal `x`, constraint multipliers
//! `λ_g`, packed bound multipliers `λ_x = z_l − z_u`, and the
//! `pounce_qp::WorkingSet` from the previous QP solve.
use Number;
use WorkingSet;
///
/// Inside the algorithm the fields are in its own space: `x` over the
/// non-fixed variables (per-variable scaled), `lambda_g = [y_c; y_d]`
/// (equality rows first) and both multipliers times the objective /
/// constraint scale. What a caller hands
/// `IpoptApplication::set_sqp_warm_start` is the *user* space instead —
/// the layout `finalize_solution` reports — and the application converts.