Beispiel #1
0
 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);
 }
Beispiel #2
0
 public PenaltySolverDetails(double mu, SmartPoint smart, double alpha)
 {
     Mu      = mu;
     X       = smart.Coordinates;
     Y       = smart.FunctionValue;
     Alpha   = alpha;
     Theta   = alpha + Y;
     MuAlpha = mu * alpha;
 }
Beispiel #3
0
 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);
 }