public void SwapStriving()
        {
            if (Striving == Striving.Max)
            {
                Striving = Striving.Min;
            }
            else
            {
                Striving = Striving.Max;
            }

            for (int i = 0; i < Coefs.Count; i++)
            {
                Coefs[i].Value *= -1;
            }
        }
 public ObjectiveFunction(double[] coefs, Striving striving)
 {
     Coefs    = new List <Coef>(AddCoefs(coefs, TypeCoef.Default));
     Striving = striving;
 }