示例#1
0
 public void Draw(TRoy Roy)
 {
     for (int m = 0; m < Info.M; m++)
     {
         OO[m].Margin = new Thickness(x2(Roy.Agents[m].P[0]) - R / 2.0, y2(Roy.Agents[m].P[1]) - R / 2.0, 0, 0);
     }
 }
示例#2
0
        public TAgent(TRoy Roy)
        {
            this.Roy = Roy;

            X = new TX();
            P = new TX(X);
            J = Roy.F(P);

            V = new TX();

            for (int n = 0; n < Info.N; n++)
            {
                V[n] = Calc.U(-(Info.B - Info.A), Info.B - Info.A);
            }
        }