Cournot_payoff() публичный Метод

public Cournot_payoff ( int s, int chrom, List p ) : double
s int
chrom int
p List
Результат double
Пример #1
0
        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();
         }
 }