32 #ifndef SHARK_ALGORITHMS_DIRECT_SEARCH_RVEA 33 #define SHARK_ALGORITHMS_DIRECT_SEARCH_RVEA 65 return m_crossoverProbability;
69 return m_crossoverProbability;
73 return m_mutation.
m_nm;
77 return m_mutation.
m_nm;
81 return m_crossover.
m_nc;
85 return m_crossover.
m_nc;
89 return m_selection.m_alpha;
93 return m_selection.m_alpha;
113 std::size_t
mu()
const{
130 return m_referenceVectors;
134 return m_referenceVectors;
138 return m_adaptation.m_initVecs;
142 return m_selection.m_maxIters;
146 return m_selection.m_maxIters;
157 return m_curIteration %
static_cast<std::size_t
>(
162 template <
typename Archive>
164 #define S(var) archive & BOOST_SERIALIZATION_NVP(var) 165 S(m_crossoverProbability);
174 S(m_referenceVectors);
175 S(m_referenceVectorMinAngles);
184 std::vector<SearchPointType>
const & initialSearchPoints
190 std::size_t n, std::size_t
const approx_mu);
194 std::vector<SearchPointType>
const & initialSearchPoints,
195 std::vector<ResultType>
const & functionValues,
196 RealVector
const & lowerBounds,
197 RealVector
const & upperBounds,
198 std::size_t
const approx_mu,
201 double const crossover_prob,
204 std::size_t
const max_iterations,
205 std::vector<Preference>
const & referenceVectorsPreferences = std::vector<Preference>()
210 std::vector<IndividualType>
const & offspringvec
216 random::rng_type * m_rng;
217 double m_crossoverProbability;
227 std::size_t m_approxMu;
241 std::size_t m_curIteration;
244 RealMatrix m_referenceVectors;
249 RealVector m_referenceVectorMinAngles;
256 #endif // SHARK_ALGORITHMS_DIRECT_SEARCH_RVEA