SwarmOpt
SwarmOpt copied to clipboard
Floating Point Computation Faults, Language Specific
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++.