-
Notifications
You must be signed in to change notification settings - Fork 175
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
QPsolve failure case #43
Comments
I see that quadprog has been updated. |
Using the original
With quadprog js
The response seems quite similar apart numerical rounding. Feel free to open an issue in https://github.com/albertosantini/node-quadprog/ project if you found cases where the figures between R package and js porting are different. |
albertosantini
added a commit
to albertosantini/quadprog
that referenced
this issue
Dec 9, 2015
This example is based on issue sloisel/numeric#43.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following input to qpsolve:
Dmat:
[13,18,-6]
[18,27,-9]
[-6,-9,4]
dvec:
[-4,0,-100]
Amat:
[0]
[0]
[-1]
bvec:
[-25]
produces the solution vector:
[21:56:14.131] x:-3.999999999999967 y:-30.666666666666707 z:-100.00000000000006
which is incorrect as best I can ascertain. The problem above was arrived at by summing the energy
(2x + 3y - z)^2 + (x-4)^2 + (z-100)^2
with the additional constraint that
z <= 25
From that description it is clear that the answer should be x=4, z=25, and y set appropriately to zero out the first energy term
The text was updated successfully, but these errors were encountered: