void evaluate(Solution s) { Payoffs p = new Payoffs(); if (game == 1) { for (int i = 0; i < objectives; i++) { s.obj[i] = p.Cournot_payoff(s.chrom[i], s.chrom, parameters); } } else if (game == 2) { // nr.player 0 1 invest., mult.fact for (int i = 0; i < objectives; i++) { s.obj[i] = p.Public_good_payoff(s.chrom[i], objectives, s.chrom, parameters); } ; co = p.getCoop(); } }
void evaluate(Solution s) { Payoffs p = new Payoffs(); if (game == 1) { for (int i = 0; i < objectives; i++) s.obj[i] = p.Cournot_payoff(s.chrom[i], s.chrom, parameters); } else if (game == 2) { // nr.player 0 1 invest., mult.fact for (int i = 0; i < objectives; i++) s.obj[i] = p.Public_good_payoff(s.chrom[i], objectives, s.chrom, parameters);; co = p.getCoop(); } }