Subject: CGAL users discussion list
List archive
- From: Ronan Torrecillos <>
- To:
- Subject: Re: [cgal-discuss] ET of Quadratic Program Solution
- Date: Fri, 13 Mar 2015 00:38:35 -0700 (PDT)
Hi,
Do you run it in Debug mode ? You will see for Gmpz :
CGAL warning: check violation!
Expression : is_integer(d)
/ An object of the class Gmpz is an arbitrary precision integer based on the
GNU Multiple Precision Arithmetic Library.
Gmpz z ( double d);
creates a multiple-precision integer initialized with the integral
part of
d. /
So if you try with 1.8 it will be seen as 1. You need to use MP_float for
your input datas.
Plus, small changes on the datas will give small changes on the output.
For 2, you have objective value :8, 0:2, 1:3
For 1.8, you have objective value :5.6, 0:1.77, 1:3.2
For 1.8 with Gmpz (so with 1), the result will not be the same
Why do you think there is a problem ?
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/ET-of-Quadratic-Program-Solution-tp4660574p4660576.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] ET of Quadratic Program Solution, Narusaki, 03/13/2015
- Re: [cgal-discuss] ET of Quadratic Program Solution, Ronan Torrecillos, 03/13/2015
- Re: [cgal-discuss] ET of Quadratic Program Solution, Narusaki, 03/13/2015
- Re: [cgal-discuss] ET of Quadratic Program Solution, Ronan Torrecillos, 03/13/2015
Archive powered by MHonArc 2.6.18.