code: public void addEvaluation(Objective obj, Evaluation eval, double weight){
          evaluations.put(obj, eval);
          // update weighted sum
          weightedSum += weight * eval.getValue();
      }
docs: Add an evaluation produced by an objective, specifying its weight.
  
  @param obj objective
  @param eval produced evaluation
  @param weight assigned weight