~swaits/differential-evolution

9e10476993ed98f726a930ce6b7e1e8fd56d6fca — swaits 19 years ago fc50c91
made BIGDOUBLE closer to max float
bugfix example was not returning error
2 files changed, 2 insertions(+), 1 deletions(-)

M de.inl
M example.cpp
M de.inl => de.inl +1 -1
@@ 20,7 20,7 @@ template <unsigned int DIM, unsigned int POP>
const double DE::Engine<DIM,POP>::DEFAULTRANGE= 1000000.0;

template <unsigned int DIM, unsigned int POP>
const double DE::Engine<DIM,POP>::BIGDOUBLE = 9.0e300; // close to max double
const double DE::Engine<DIM,POP>::BIGDOUBLE = 1.79e308; // close to max double

template <unsigned int DIM, unsigned int POP>
inline DE::Engine<DIM,POP>::Engine()

M example.cpp => example.cpp +1 -0
@@ 31,6 31,7 @@ class PolySearch: public DE::Engine<4>
			{
				stop = true;
			}
			return error;
		}
};