public StepDetails(Vector startpoint, double lambda, Vector d, Vector newPoint, int j) { Lambda = lambda; D = d; J = j; start = new SmartPoint(startpoint); end = new SmartPoint(newPoint); }
public PenaltySolverDetails(double mu, SmartPoint smart, double alpha) { Mu = mu; X = smart.Coordinates; Y = smart.FunctionValue; Alpha = alpha; Theta = alpha + Y; MuAlpha = mu * alpha; }
public PenaltySolver(Func <double[], double> f, Func <double[], double> penalty, Vector startPoint, double epsilon, double mu, double beta) { if (f == null || penalty == null || epsilon <= 0 || mu <= 0 || beta <= 1) { throw new ArgumentException(); } this.f = f; this.penalty = penalty; this.startPoint = startPoint; this.epsilon = epsilon; this.mu = mu; this.beta = beta; SmartPoint.SetFunction(f); }