private Simplex MainStep() { Simplex smp = new Simplex(); MathFunction fnc = FuncStep(); var limits = LimitsStep(); smp.SetFunction(fnc); foreach (var x in limits) smp.AddLimit(x); return smp; }