Пример #1
0
 public ActionResult Genetic2(GData item)
 {
     item       = gitem;
     item.kf[2] = new List <double>()
     {
         120 - 120 * 0.05, 90 - 90 * 0.05, 80 - 80 * 0.05, 70 - 70 * 0.05, 2800000
     };
     item.Solve();
     return(View("Genetic", item));
 }
Пример #2
0
 public ActionResult Genetic3(GData item)
 {
     item       = gitem;
     item.kf[0] = new List <double>()
     {
         100 - 83, 100 - 89, 100 - 95, 100 - 98
     };
     item.Solve();
     return(View("Genetic", item));
 }
Пример #3
0
 public ActionResult Simplex3(SData item)
 {
     item = this.item;
     item.dtFunctionVariables = new List <double>
     {
         100 - 83, 100 - 89, 100 - 95, 100 - 98
     };
     item.Solve();
     return(View("Simplex", item));
 }
Пример #4
0
 public ActionResult Genetic1(GData item)
 {
     item       = gitem;
     item.kf[0] = new List <double>()
     {
         105 - 83 - 83 * 0.05, 105 - 89 - 89 * 0.05, 105 - 95 - 95 - 0.05, 105 - 98 - 98 * 0.05
     };
     item.Solve();
     return(View("Genetic", item));
 }
Пример #5
0
        public ActionResult Simplex(SData item, string Method)
        {
            try
            {
                item.Solve();
            }
            catch (Exception) { }

            return(View(item));
        }
Пример #6
0
        public ActionResult Simplex1(SData item)
        {
            item = this.item;
            item.dtFunctionVariables = new List <double>
            {
                105 - 83 - 83 * 0.05, 105 - 89 - 89 * 0.05, 105 - 95 - 95 - 0.05, 105 - 98 - 98 * 0.05
            };

            item.Solve();
            return(View("Simplex", item));
        }
Пример #7
0
        public ActionResult Simplex2(SData item)
        {
            item             = this.item;
            item.dtVariables = new List <List <double> >
            {
                new List <double>()
                {
                    120 - 120 * 0.05, 90 - 90 * 0.05, 80 - 80 * 0.05, 70 - 70 * 0.05
                },
                new List <double>()
                {
                    1, 1, 1, 1
                }
            };

            item.Solve();
            return(View("Simplex", item));
        }
Пример #8
0
 public ActionResult GeneticGeneral(GData item)
 {
     item = gitem;
     item.Solve();
     return(View("Genetic", item));
 }
Пример #9
0
 public ActionResult SimplexGeneral(SData item)
 {
     item = this.item;
     item.Solve();
     return(View("Simplex", item));
 }