示例#1
0
        private void Reload()
        {
            optm = new OptimalManaging(1d, 1d, a, 1d, TIME_SIZE, GRID_SIZE, 0.1, 0.1,
                                       TestFunction1.y, TestFunction1.p, TestFunction1.phi, TestFunction1.f, -100, 100, R);
            optm.pickAlpha = pick;
            DrawOM.SetNSeries(chart1, 2);
            DrawOM.SetHeatMap(chart2);
            y     = MyMath.GetVectorFunction(GRID_SIZE, 0, 1d, TestFunction1.y);
            u_old = new Vector(GRID_SIZE);
            x     = new Vector(MyMath.CreateUniformGrid(GRID_SIZE, 0, 1d));

            tau  = new Vector(MyMath.CreateUniformGrid(TIME_SIZE, 0, 1d));
            Iter = 0;
            DrawOM.Draw(chart1, x, y, 0);
        }
示例#2
0
 public static Vector CreateUniformGrid(int GridSize, double a, double b)
 {
     return(new Vector(MyMath.CreateUniformGrid(GridSize, a, b)));
 }