Exemple #1
0
        public ActionResult Input(Algoritm2 alg)
        {
            Matrix InputData = new Matrix();

            Matrix.ReadFile();
            Matrix.zero_matr();
            for (int i = 0; i < Matrix.amount_ver; i++)
            {
                for (int j = 0; j < Matrix.amount_ver; j++)
                {
                    if (i != j)
                    {
                        double kfhb        = (Matrix.all_versh(i, j) - Matrix.ob_versh(i, j)) / (Matrix.all_versh(i, j) + Matrix.ob_versh(i, j));
                        double kdfudsu     = Matrix.all_versh(i, j) - Matrix.ob_versh(i, j);
                        double ksauhawiud  = Matrix.all_versh(i, j) + Matrix.ob_versh(i, j);
                        double sdufhaieush = Math.Round(kdfudsu / ksauhawiud, 3);
                        Matrix.road_l[i][j] = sdufhaieush;
                    }
                }
            }
            //ViewBag.Answer = alg.Variables;
            Algoritm2.amountVersionInFirstPD  = alg.Variable1;
            Algoritm2.amountVersionInSecondPD = alg.Variable2;
            Algoritm2.PodgrafThree();
            Algoritm2.sumr();
            return(View());
        }
Exemple #2
0
        //
        // GET: /Algoritm/
        public ActionResult Input()
        {
            Algoritm2 InputData = new Algoritm2();

            return(View());
        }