Class: FeldtRuby::Optimize::DiversityObjective

Inherits:
Objective show all
Defined in:
lib/feldtruby/optimize/objective.rb

Overview

A diversity objective often is a secondary goal and is measured relative to quality goals/objectives or relative to candidates in the archive. Thus it needs to have access to these other two objects.

Direct Known Subclasses

EuclideanDistanceToBest

Instance Attribute Summary collapse

Attributes inherited from Objective

#best_candidate, #current_version, #global_max_values_per_goal, #global_min_values_per_goal

Attributes included from Logging

#logger

Method Summary

Methods inherited from Objective

#aggregated_quality, #calculate_sub_qualities_of, #goal_methods, #hat_compare, #initialize, #invalidate_quality_of, #is_better_than?, #is_better_than_for_goal?, #is_goal_method?, #is_min_goal?, #is_min_goal_method?, #map_candidate_to_object_to_be_evaluated, #note_end_of_optimization, #num_goals, #quality_of, #rank_candidates, #sub_qualities_of, #weights, #weights=

Methods included from Logging

#__find_logger_set_on_instance_vars, #new_default_logger, #setup_logger_and_distribute_to_instance_variables

Constructor Details

This class inherits a constructor from FeldtRuby::Optimize::Objective

Instance Attribute Details

#archiveObject

Returns the value of attribute archive.



532
533
534
# File 'lib/feldtruby/optimize/objective.rb', line 532

def archive
  @archive
end

#quality_objectiveObject

Returns the value of attribute quality_objective.



533
534
535
# File 'lib/feldtruby/optimize/objective.rb', line 533

def quality_objective
  @quality_objective
end