call_and_output_CVXPY

compas_tno.solvers.call_and_output_CVXPY(form, problem, solver_convex='CLARABEL', printout=False)

Call and output the loadpath optimisation with CVXPY.

This function is kept for backward compatibility. New code should use CVXPYSolver class.

Parameters:
formFormDiagram

The form Diagram of the analysis

problemProblem

The Problem with relevant matrices and vectors

solver_convexstr, optional

Solver to use, by default CLARABEL. Options are “CLARABEL”, “MOSEK” or “CVXOPT”.

printoutbool, optional

Whether or not print results, by default False

Returns:
resultSolverResult

The SolverResult object with the key solution information.

Notes

This is a legacy function. For new code, use CVXPYSolver class directly.