public LinearSearch(Coord _x0, Coord _p, Func.function _y) { methods(); x0 = _x0; p = _p; y = _y; }
public HookeJeeves(Coord _x0, Func.function _y, double _Eps) { x[0] = _x0; x[1] = x[0]; y = _y; Eps = _Eps; //h = 0.01 * x[0].Norma; }
public VariableMetric(Coord _x0, Func.function _y, double _Eps) { x[0] = _x0; x[1] = x[0]; y = _y; Eps = _Eps; amountVar = _x0.coord.Length; }
public NewtonMod(Coord _x0, Func.function _y, double _Eps) { x[0] = _x0; x[1] = x[0]; y = _y; Eps = _Eps; amountVar = _x0.coord.Length; }
public static Coord Gradient_4(Func.function f, Coord x, int amount) { double[] g = new double[amount]; for (int i = 0; i < amount; i++) { g[i] = Func.diff_4(f, x, i); } return(new Coord(g)); }
public GradientMethod(Coord _x0, int _amountVar, Func.function d, double _E) { amountVar = _amountVar; amountPoints = amountVar + 2; x = new Coord[amountPoints]; x[0] = _x0; x[1] = x[0]; y = d; Eps = _E; }
public ConjugatedGrad(Coord _x0, Func.function d, double _E) { amountVar = _x0.coord.Length; amountPoints = amountVar + 1; //x = new Coord[100]; x[0] = _x0; x[1] = x[0]; y = d; Eps = _E; }
public static Matrix H_2(Func.function f, int length, Coord x) { double[,] el = new double[length, length]; for (int i = 0; i < length; i++) { for (int j = 0; j < length; j++) { el[i, j] = Func.second_diff_2(f, x, i, j); } } return(new Matrix(el)); }
public Coord Gradient(Func.function f) { return(Gradient(f, this, this.coord.Length)); }