103 archive >> BOOST_SERIALIZATION_NVP(
m_parents);
104 archive >> BOOST_SERIALIZATION_NVP(m_mu);
105 archive >> BOOST_SERIALIZATION_NVP(
m_best);
107 archive >> BOOST_SERIALIZATION_NVP(m_selection);
108 archive >> BOOST_SERIALIZATION_NVP(m_notionOfSuccess);
109 archive >> BOOST_SERIALIZATION_NVP(m_individualSuccessThreshold);
110 archive >> BOOST_SERIALIZATION_NVP(m_initialSigma);
113 archive << BOOST_SERIALIZATION_NVP(
m_parents);
114 archive << BOOST_SERIALIZATION_NVP(m_mu);
115 archive << BOOST_SERIALIZATION_NVP(
m_best);
117 archive << BOOST_SERIALIZATION_NVP(m_selection);
118 archive << BOOST_SERIALIZATION_NVP(m_notionOfSuccess);
119 archive << BOOST_SERIALIZATION_NVP(m_individualSuccessThreshold);
120 archive << BOOST_SERIALIZATION_NVP(m_initialSigma);
132 std::vector<SearchPointType>
const& initialSearchPoints
135 std::vector<RealVector> values(initialSearchPoints.size());
136 for(std::size_t i = 0; i != initialSearchPoints.size(); ++i){
138 values[i] = function.
eval(initialSearchPoints[i]);
166 std::vector<SearchPointType>
const& initialSearchPoints,
167 std::vector<ResultType>
const& functionValues,
177 std::size_t noVariables = initialSearchPoints[0].size();
180 std::size_t numPoints = 0;
181 if(initialSearchPoints.size()<=
mu){
182 numPoints = initialSearchPoints.size();
183 for(std::size_t i = 0; i != numPoints; ++i){
185 m_parents[i].searchPoint() = initialSearchPoints[i];
186 m_parents[i].penalizedFitness() = functionValues[i];
187 m_parents[i].unpenalizedFitness() = functionValues[i];
191 for(std::size_t i = numPoints; i !=
mu; ++i){
192 std::size_t index =
random::discrete(*mpe_rng,std::size_t(0),initialSearchPoints.size()-1);
194 m_parents[i].searchPoint() = initialSearchPoints[index];
195 m_parents[i].penalizedFitness() = functionValues[index];
196 m_parents[i].unpenalizedFitness() = functionValues[index];
199 for(std::size_t i = 0; i !=
mu; ++i){
204 indicator().init(functionValues.front().size(),
mu,*mpe_rng);