Skip to content

SPICE.py quadprog_solve_qp not defined #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bixiu opened this issue May 21, 2020 · 2 comments
Open

SPICE.py quadprog_solve_qp not defined #7

bixiu opened this issue May 21, 2020 · 2 comments

Comments

@bixiu
Copy link

bixiu commented May 21, 2020

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

@susanmeerdink
Copy link
Collaborator

We are currently restructuring this repo for a PyPI package. Please check back for updates.

@bixiu
Copy link
Author

bixiu commented May 21, 2020

We are currently restructuring this repo for a PyPI package. Please check back for updates.

thank you for your timely reply. maybe the function <quadprog_solve_qp> is different with what i wrote. hope you final update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants