run_convex_optimisation

compas_tno.solvers.run_convex_optimisation(analysis)

Run convex optimisation problem with CVXPY.

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

Parameters:
analysisAnalysis

Analysis object with information about optimiser, form and shape.

Returns:
resultSolverResult

The SolverResult object with the key solution information.

Notes

This function wraps the new CVXPYSolver class for backward compatibility. For new code, prefer using:

solver = CVXPYSolver(settings={"solver_convex": "CLARABEL", "printout": True})
result = solver.solve(problem)