Subject: CGAL users discussion list
List archive
- From: Mael <>
- To:
- Subject: Re: [cgal-discuss] A bit of help with the Quadratic Programming solver
- Date: Mon, 17 Jun 2019 09:18:35 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:+9NjBBDuE4AFemgqYOc0UyQJP3N1i/DPJgcQr6AfoPdwSPX6o8bcNUDSrc9gkEXOFd2Cra4d0qyP7f6rADVZqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5vIBmssAnct8gbjYR/Jqos1xfCv2dFdflRyW50P1yYggzy5t23/J5t8iRQv+wu+stdWqjkfKo2UKJVAi0+P286+MPkux/DTRCS5nQHSWUZjgBIAwne4x7kWJr6rzb3ufB82CmeOs32UKw0VDG/5KplVBPklCEKPCM+/2/Kl8xwl7pbrwy9qBxjzYDUZ4SVO+B/fqPbYNgWQWVMU8JUWyFHH4iybZYAD/AZMOhFsYf9qVsAoxiwCwaiC+zgyCNHiHDt0K0m0OksCx3K0BAuEt8MtnnfsdX7NL0VUeCw1KTGyi/MYO1S2Tzg74XIdwouru+IXb5qa8rRzlQvFgzbgVWUs4DlOyma2f8WvGeF9OdgWvygi2kiqw5vvjiv3MctiofTiY0J1lDE8j95wYYvKdKkT057ZMepHZ1NvC+UMIt2R9ktQ2BuuCsi17IGvoK0czUQyJQgxh7QduaLc46W7RL/TOqePTh4i2hheL6lgBay60egx+vhXce3yFZHtjdJn9vPu3wX2RHe5NKLRuV980u8wzqDyh3f5+JcLU0wiabXMZ0sz78qmpYNrUjPAzX6lUfygaKQa04q4PKn6/79bbXjvpKcN5F7igX5Mqk2h8CyBf40Mg0JX2WZ4+i80afs/Uz9QLlTif02j7XZvIrdJcQFpq61GQlV3Zg/6xqnDjem1soXnWUfIV5Yeh+KjJLlNl/ALfziE/uyg0mgnC12y/zbPbDtGpDNIWLCkLflc7Z98UlcyA8rwNBa/Z1bFLUBLOjpWk/2qdzZAQE2Mwiuz+bjEtpyzZgRVnyUD6+WLqzStlqI6fwzI+mWZI4VtizyJOQ55/7pl384mUURcrWu3ZsScHy4BOhpI12FYXrwhdcMCXsFvgUkQ+zukVGNTD9TZ22uUKIh/TE7E5mrDZzDR4ComLyOxj23HpxQZmBcC1CDC23kd4ueW6REVCXHKcBolnkIVKOqVpQ6/RCorg7zjbR9fcTO/ShNkJvu0JAh4uTekVco8iFkAsDb12iHRWxckW4PQjIqxrFxqEdhzU2Sl6N/hqoLRpRo+/pVX1JiZtbnxOtgBoWuC1udLOfMc06vR5CdOR90Vsg4mYZcbEt6Hti+lAHN1iG2BKUE0beMAc5sq/OO7z3KP894jk3++uwkhlgiTNFIMDf/1KFy8A3eG5TYnUySi6GwZOIX2yufrD7en1rLh1lRVUtLaYuAXX0bYRGL/42ooEbFEPmrALUjdwxc1YiFNKsMbND13w1L
Bad copy paste, I meant :
status: OPTIMAL
objective value: 60/32
variable values:
0: 1/4
1: 3/4
On 17/06/2019 09:16, Mael wrote:
Hello,
'D' must be a symmetric matrix (https://doc.cgal.org/latest/QP_solver/classCGAL_1_1Quadratic__program__from__iterators.html). Thus you matrix D should be
( 2 0.5
( 0.5 1)
and not
(2 0)
(1 1)
That means:
double D1[] = { 4.0, 1.0 };
double D2[] = { 1.0, 2.0 };
and then you get
double D1[] = { 4.0, 1.0 };
double D2[] = { 1.0, 2.0 };
Best,
Mael
On 12/06/2019 01:25, Al Mo wrote:
Hi everyone,
This is the first time I'm using CGAL's QP solver and I ran into an issue where I don't get the expected result in a very simple scenario.
I put everything on a document so it's easier for you to check it out (including minimal source code). The document is here: https://www.docdroid.net/jEFGEEt/cgal-qp.pdf (I didn't want to attach it, as I don't know if that's allowed)
If someone could take a quick look at it and help me out I will greatly appreciate it. It may be something very trivial that I missed.
Thank you all and best regards,
Alex.
- [cgal-discuss] A bit of help with the Quadratic Programming solver, Al Mo, 06/12/2019
- Re: [cgal-discuss] A bit of help with the Quadratic Programming solver, Mael, 06/17/2019
- Re: [cgal-discuss] A bit of help with the Quadratic Programming solver, Mael, 06/17/2019
- Re: [cgal-discuss] A bit of help with the Quadratic Programming solver, Marc Glisse, 06/17/2019
- Re: [cgal-discuss] A bit of help with the Quadratic Programming solver, Al Mo, 06/17/2019
- Re: [cgal-discuss] A bit of help with the Quadratic Programming solver, Mael, 06/17/2019
Archive powered by MHonArc 2.6.18.