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:16:46 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:Z64S6h8GLU5y7/9uRHKM819IXTAuvvDOBiVQ1KB20ugcTK2v8tzYMVDF4r011RmVBNydsqwawLOP6ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVmTaxe65+IRS3oAneq8UanJZuIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1jygJKiM58HrPisNukK1bvByvpxt6w4HOYYGVMud1cqfScN4eQGZMWNtaWS5cDYOmd4YBEvQPPehYoYf+qVUBoxSxCguwC+3g0TJImnz70Lcm3+g9HwzL3gotFM8OvnTOq9X1Mb8fX+evw6bWyTXIcvRb2TLn54fWdhAtu+uMXbVtccve10YvExnJjlGKpoP+JDyayP8As2eF4OpnUOKglXInqxtxozih3MgjlpXJhoUPylHE7yl23IE1JdihRUN9fNWqHpxQtySAOIt3RMMvW3xnuCEmxbIbo567eykKx4k9yx7ZdfOHb5CE7Q7sVOmLJTd0nnVleKiwhxu07EOuyfX8W9Gp3FtIrSdJiNfBum4X2xDO98SKTuFx8lmh1DqTzwze7v1ILVo3mKfaMZIt3KI8mocJvUnBGiL7nlj9grWMeUU+4Oeo7vzqYrX4qZ+YMI95kh/yPr4rmsy4HOg0KA0OUHKa+eS4zbHj+lD5QKlQgv0xjKnZsIrWJcIFqa6lGwNV04Aj5AijDzq+zdgVn3oKIEhLdR6ZlYTlJkzCLfTiAfuhg1mgjC9nx/XcMb3gBpXNIGLDkLDkfbtl7k5T0hQ8zdRF65JODbEBPf3yVVH1tNDCCh82KRe7zP35B9hm2YMRR2WPAqqHP6POq1+J5uwvLPOQa48Jvzb9Mfgk6+Tygn8+nF8RZbOp0ocPaHCkAvRmJF2UbmbjgtgbFWcGpxcxTO3xiFKeTD5TfG2yUrkn5jA7DYKmFZ3MSpqsgLyHxie7H4dZanpIClCWQj/UcNCPVP4ILS6TOcR8iScsVL67SoZn2wv9mhX9zu9CJ+fQsnkdvJ/nksJy+v3ekVc2/DZ+AuyS3maIQn1uj20BTCMxxrE5qkt4nATQmZNkiuBVQIQAr8hCVR03YMKNlrEoO5XJQgvEO+yxZhOmT9GhW21jFJQ0xIZIZk98H5ClkwyF2DSqRbkYi+7TXc1mwufnx3H0Yv1F5TPD3aglgUMhR5EWZ2Krgaty6xLCCYfCj0KDhuChcqFOhHeRplfG9nKHuQRjaCA1Sb/MBylNaUbRqNnl/FLMRrSyDq42dABGzJzaJw==
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.