slsqp_jax.slsqp.verbose

Default and no-op verbose callbacks used by SLSQP.

slsqp_jax.slsqp.verbose

Verbose-output callbacks for the SLSQP outer loop.

Two callables are exposed:

  • slsqp_verbose() — print one line per SLSQP step, with each field formatted by an optional fmt_spec provided as the third tuple element. Wraps jax.debug.print(), so it is safe to call inside a JAX-traced step.

  • no_verbose() — no-op alternative used when verbose=False is requested at construction time.

Both are kept tiny on purpose: the format specifiers are stripped at class-construction time so that PyTree equality (and therefore optimistix JIT cache hits) is preserved across runs that differ only in the verbose printer payload.

slsqp_jax.slsqp.verbose.no_verbose(**_kwargs)[source]

No-op verbose callback.

Return type:

None

Parameters:

_kwargs (tuple)

slsqp_jax.slsqp.verbose.slsqp_verbose(**kwargs)[source]

Default verbose callback with per-field format specifiers.

Each kwarg value is either (label, value) or (label, value, fmt_spec). The fmt_spec string (e.g. ".3e") is inserted into the jax.debug.print format placeholder.

Return type:

None

Parameters:

kwargs (tuple)