https://5dok.org/document/oy88w05y-formulation-stability-margins-clearance-criterion-convex-optimization-problem.html