SwarmOpt icon indicating copy to clipboard operation
SwarmOpt copied to clipboard

Floating Point Computation Faults, Language Specific

Open duaraghav8 opened this issue 9 years ago • 0 comments

Example-> Output of demo/test_3.cpp

-900 -900 900 -780 -900 900 Minimum Point Reached: -1.29182e-15

The vector produced as a result has reached the global minimum of 0 since it yields the target (120.0) perfectly when you add all the terms. But the adding still shows a small error. This is because of the way doubles are implemented in C / C++.

duaraghav8 avatar Nov 12 '15 11:11 duaraghav8