30 #ifndef SHARK_ALGORITHMS_DIRECT_SEARCH_TYPED_INDIVIDUAL_H 31 #define SHARK_ALGORITHMS_DIRECT_SEARCH_TYPED_INDIVIDUAL_H 34 #include <boost/range/adaptor/transformed.hpp> 60 template<
typename Po
intType,
class FitnessTypeT,
class Chromosome = RealVector >
71 return individual1.
rank() < individual2.
rank();
148 template<
typename Archive>
149 void serialize(Archive & archive,
const unsigned int version) {
154 archive & BOOST_SERIALIZATION_NVP(
m_rank);
155 archive & BOOST_SERIALIZATION_NVP(
m_selected);
182 struct IndividualPenalizedFitnessFunctor{
183 template<
class Indiv
idual>
187 template<
class Indiv
idual>
193 struct IndividualUnpenalizedFitnessFunctor{
194 template<
class Indiv
idual>
198 template<
class Indiv
idual>
204 struct IndividualSearchPointFunctor{
205 template<
class Indiv
idual>
209 template<
class Indiv
idual>
215 struct IndividualRankFunctor{
216 template<
class Indiv
idual>
220 template<
class Indiv
idual>
227 template<
class Indiv
idualRange>
234 template<
class Indiv
idualRange>
241 template<
class Indiv
idualRange>
242 auto ranks(IndividualRange& range) -> decltype(
249 template<
class Indiv
idualRange>