36 #ifndef SHARK_ALGORITHMS_DIRECT_SEARCH_OPERATORS_EVALUATION_PENALIZING_EVALUATOR_H 37 #define SHARK_ALGORITHMS_DIRECT_SEARCH_OPERATORS_EVALUATION_PENALIZING_EVALUATOR_H 69 template<
typename Function,
typename Indiv
idualType>
71 typename Function::SearchPointType t( individual.
searchPoint() );
72 if( !f.isFeasible( t ) ) {
73 f.closestFeasible( t );
92 template<
typename Function,
typename Iterator>
93 void operator()( Function
const& f, Iterator begin, Iterator end )
const {
94 for(Iterator pos = begin; pos != end; ++pos){
99 template<
class SearchPo
intType>
100 void penalize(SearchPointType
const& s, SearchPointType
const& t,
double& fitness)
const{
104 template<
class SearchPo
intType>
105 void penalize(SearchPointType
const& s, SearchPointType
const& t, RealVector& fitness)
const{
116 template<
typename Archive>
117 void serialize( Archive & archive,
const unsigned int version ) {