made BIGDOUBLE closer to max float
bugfix example was not returning error
This commit is contained in:
1 parent
fc50c9142a
commit
9e10476993
2 files changed
+2
-1
No files matched your search
@@ -20,7 +20,7 @@ template <unsigned int DIM, unsigned int POP>
|
|||||||
const double DE::Engine<DIM,POP>::DEFAULTRANGE= 1000000.0;
|
const double DE::Engine<DIM,POP>::DEFAULTRANGE= 1000000.0;
|
||||||
|
|
||||||
template <unsigned int DIM, unsigned int POP>
|
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>
|
template <unsigned int DIM, unsigned int POP>
|
||||||
inline DE::Engine<DIM,POP>::Engine()
|
inline DE::Engine<DIM,POP>::Engine()
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class PolySearch: public DE::Engine<4>
|
|||||||
{
|
{
|
||||||
stop = true;
|
stop = true;
|
||||||
}
|
}
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user