You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so,as I run the demo code,some wrong happen,First, no
module util was found,so i change the init.py by SPICE.util .second, quadprog_solve_qp not defined, i def quadprog_solve_qp(P, q, G=None, h=None, A=None, b=None):
qp_G = .5 * (P + P.T) # make sure P is symmetric
qp_a = -q
if A is not None:
qp_C = -np.vstack([A, G]).T
qp_b = -np.hstack([b, h])
meq = A.shape[0]
else: # no equality constraint
qp_C = -G.T
qp_b = -h
meq = 0
return quadprog.solve_qp(qp_G, qp_a, qp_C, qp_b, meq)[0]
but it also can not wrok, how to solve this problem , my computer system is window 10 x64
The text was updated successfully, but these errors were encountered:
so,as I run the demo code,some wrong happen,First, no
module util was found,so i change the init.py by SPICE.util .second, quadprog_solve_qp not defined, i def quadprog_solve_qp(P, q, G=None, h=None, A=None, b=None):
qp_G = .5 * (P + P.T) # make sure P is symmetric
qp_a = -q
if A is not None:
qp_C = -np.vstack([A, G]).T
qp_b = -np.hstack([b, h])
meq = A.shape[0]
else: # no equality constraint
qp_C = -G.T
qp_b = -h
meq = 0
return quadprog.solve_qp(qp_G, qp_a, qp_C, qp_b, meq)[0]
but it also can not wrok, how to solve this problem , my computer system is window 10 x64
The text was updated successfully, but these errors were encountered: