COPP2

COPP2-related Python APIs follow the Rust solver-module layout.

SOCP

COPP2 SOCP solver backed by Clarabel.

copp_py.solver.copp2_socp.Problem

alias of Copp2Problem

copp_py.solver.copp2_socp.Options

alias of ClarabelOptions

copp_py.solver.copp2_socp.Result

alias of Copp2SocpResult

copp_py.solver.copp2_socp.solve(problem, options=None)

Solve a COPP2 problem with the Clarabel SOCP backend.

Parameters:
  • problem (Copp2Problem)

  • options (ClarabelOptions | None)

Return type:

ndarray[tuple[Any, …], dtype[float64]]

copp_py.solver.copp2_socp.solve_expert(problem, options=None)

Solve COPP2-SOCP and return raw Clarabel diagnostics.

Parameters:
  • problem (Copp2Problem)

  • options (ClarabelOptions | None)

Return type:

Copp2SocpResult