macop.evaluators.multi

Multi-objective evaluators classes

Classes

WeightedSum(data)

Weighted-sum sub-evaluator class which enables to compute solution using specific _data

class macop.evaluators.multi.WeightedSum(data)[source]

Weighted-sum sub-evaluator class which enables to compute solution using specific _data

  • stores into its _data dictionary attritute required measures when computing a solution

  • _data[‘evaluators’] current evaluator to use

  • _data[‘weights’] Associated weight to use

  • compute method enables to compute and associate a tuples of scores to a given solution

compute(solution)[source]

Apply the computation of fitness from solution

  • Associate tuple of fitness scores for each objective to the current solution

  • Compute weighted-sum for these objectives

Parameters

solution – {Solution} – Solution instance

Returns

{float} – weighted-sum of the fitness scores