private ObjectiveFunction CreateObjectiveFunction() { var builder = new ObjectiveFunction.Builder(); return builder.WithF(x => 9 - Math.Pow(x, 2)) .WithFDash(x => -2 * x) .WithFDoubleDash(x => -2) .Build(); }
protected override ObjectiveFunction CreateObjectiveFunction() { var builder = new ObjectiveFunction.Builder(); return builder.WithF(this.FunctionF) .WithFDash(this.FunctionFDash) .WithFDoubleDash(this.FunctionFDoubleDash) .Build(); }