pysolver_view.optimization.backends.pounce module

pysolver_view.optimization.backends.pounce module#

Adapt optional Pounce NLP solvers to package evaluations and observations.

pysolver_view.optimization.backends.pounce.minimize_pounce(problem, x0, method, solver_options)[source]#

Solve a smooth constrained NLP through Pounce’s cyipopt-style interface.

Parameters:
problemBackendProblem

Frontend evaluation callbacks, normalized bounds, constraint counts, and optional native_callback observation sink. Inequalities are nonpositive. Derivative evaluations and caching belong to this object.

x0array_like, shape (n,)

Initial point in the coordinates supplied by the frontend.

method{“ipm”, “sqp”}

Select the interior-point or active-set SQP NLP algorithm.

solver_optionsdict

Generic tolerance and max_iterations plus Pounce native options. Defaults disable Pounce scaling and bound relaxation because the frontend already owns problem scaling and declared-bound diagnostics. Supplied component Hessians select exact curvature by default. Without them, quasi-Newton curvature remains the default.

Returns:
scipy.optimize.OptimizeResult

Native returned point reconciled only within bound_tolerance, plus the raw native_x, observation history, and diagnostics. Success means strict native success or a requested KKT stop, subject to the frontend’s independent final-point check. solver_success additionally identifies acceptable-level native termination. Multipliers retain Pounce’s grad(f) + J.T @ lambda - z_lower + z_upper convention in the frontend’s solver coordinates; no physical rescaling occurs here.

pysolver_view.optimization.backends.pounce.reconcile_bound_point(x, lower, upper, tolerance)[source]#

Project only tolerance-sized box excursions, preserving larger failures.

All native value and derivative callbacks use the same reconciled point. This supplies feasible bases to bounded finite differences, whose probes then stay inside the original box. Raw native coordinates remain separate. tolerance is an absolute distance in the caller’s solver coordinates.

pysolver_view.optimization.backends.pounce.resolve_pounce_controls(options, check_kkt=True)[source]#

Validate frontend stopping and absolute solver-coordinate bound tolerances.