Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Linear inequality constraint matrix.
h : numpy.array, cvxopt.matrix or cvxopt.spmatrix
Linear inequality constraint vector.
A : numpy.array, cvxopt.matrix or cvxopt.spmatrix
Linear equality constraint matrix.
b : numpy.array, cvxopt.matrix or cvxopt.spmatrix
Linear equality constraint vector.
initvals : numpy.array, optional
Warm-start guess vector.
Returns
-------
x : numpy.array
Solution to the QP, if found, otherwise ``None``.
"""
return cvxopt_solve_qp(P, q, G, h, A, b, 'mosek', initvals)