Skip to main content

topp3_lp

Function topp3_lp 

Source
pub fn topp3_lp(
    problem: &Topp3Problem<'_>,
    options: &ClarabelOptions,
) -> Result<(Vec<f64>, Vec<f64>, (usize, usize)), CoppError>
Expand description

Strict TOPP3-LP API for production use.

§Purpose

Use this entry when caller only needs a valid profile (a,b,num_stationary) and treats non-accepted solver statuses as hard failures.

§Contract

  • Internally calls topp3_lp_expert.
  • Returns Ok((a,b,num_stationary)) iff options.is_allow(solution.status) is true.
  • Returns Err(CoppError::ClarabelSolverStatus(...)) when status is not accepted.

§Returns

Returns accepted TOPP3 profile (a, b, num_stationary).

§Errors

Returns CoppError on model/solver failures and non-accepted solver status.

More details are provided in the documentation of topp3_lp_expert.