예제 #1
0
		public NewtonRaphsonLineSearch(CostFunction costfunction, EndCriteria endcriteria,
			int maxiteration, double tolerance)
		{
			this.costFunction_ = costfunction;
			this.endCriteria_ = endcriteria;
			this.maxIteration = maxiteration;
			this.tolerance = tolerance;
		}
예제 #2
0
 public NewtonRaphsonLineSearch(CostFunction costfunction, EndCriteria endcriteria,
                                int maxiteration, double tolerance)
 {
     this.costFunction_ = costfunction;
     this.endCriteria_  = endcriteria;
     this.maxIteration  = maxiteration;
     this.tolerance     = tolerance;
 }
예제 #3
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria, double sigma_0,
                         int maxiteration, double tolerance)
 {
     this.costFunction_ = costfunction;
     this.endCriteria_  = endcriteria;
     this.sigma_0       = sigma_0;
     this.maxIteration  = maxiteration;
     this.tolerance     = tolerance;
 }
예제 #4
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria, double sigma_0, 
   int maxiteration, double tolerance) 
 {
   this.costFunction_=costfunction;
   this.endCriteria_=endcriteria;
   this.sigma_0 = sigma_0;
   this.maxIteration=maxiteration;
   this.tolerance=tolerance;
 }
예제 #5
0
 ///<summary>Constructor for More-Thuente Line Search.</summary>
 public MoreThuenteLineSearch(CostFunction costfunction)
     : this(costfunction, new EndCriteria())
 {
 }
예제 #6
0
 public NewtonRaphsonLineSearch(CostFunction costfunction, EndCriteria endcriteria)
     : this(costfunction, new EndCriteria(), 50, 1e-8)
 {
 }
예제 #7
0
		public NewtonRaphsonLineSearch(CostFunction costfunction, EndCriteria endcriteria)
			: this(costfunction, new EndCriteria(), 50, 1e-8) { }
예제 #8
0
 ///<summary>Constructor for Conjugate Gradient Method. The constructor specifies the
 /// costfunction and optionally user specified ending criteria and line search methods.</summary>
 ///<param name="costfunction">Nonlinear cost function to minimize.</param>
 ///<param name="endcriteria">User specified ending criteria.</param>
 public ConjugateGradient(CostFunction costfunction, EndCriteria endcriteria)
     : this(costfunction, endcriteria, new SecantLineSearch(costfunction, endcriteria))
 {
 }
예제 #9
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria)
     : this(costfunction, endcriteria, 1)
 {
 }
예제 #10
0
 ///<summary>Constructor for Secant Line Search</summary>
 public SecantLineSearch(CostFunction costfunction)
   : this(costfunction, new EndCriteria()) {}
예제 #11
0
 ///<param name="lsm">User specified line search method, defaults to Secant line search method</param>
 public ConjugateGradient(CostFunction costfunction, EndCriteria endcriteria, LineSearchMethod lsm) 
 {
   this.costFunction_=costfunction;
   this.endCriteria_=endcriteria;
   this.lineSearchMethod_=lsm;
 }
예제 #12
0
 ///<param name="endcriteria">User specified ending criteria.</param>
 public ConjugateGradient(CostFunction costfunction, EndCriteria endcriteria)
   : this(costfunction, endcriteria, new SecantLineSearch(costfunction, endcriteria)) {}
예제 #13
0
 ///<summary>Constructor for Conjugate Gradient Method. The constructor specifies the 
 /// costfunction and optionally user specified ending criteria and line search methods.</summary>
 ///<param name="costfunction">Nonlinear cost function to minimize.</param>
 ///<remarks>This class began as a port of CG+ by Guanghui Lui, Jorge Nocedal and Richard Waltz
 /// to C#</remarks>
 ///<seealso href="http://www.ece.northwestern.edu/~rwaltz/CG+.html">CG+</seealso>
 public ConjugateGradient(CostFunction costfunction)
   : this(costfunction, new EndCriteria()) {}
 public MoreThuenteLineSearch(CostFunction costfunction, EndCriteria endcriteria)
 {
   this.costFunction_=costfunction;
   this.endCriteria_=endcriteria;
 }
 ///<summary>Constructor for More-Thuente Line Search.</summary>
 public MoreThuenteLineSearch(CostFunction costfunction)
   : this(costfunction, new EndCriteria()) {}
예제 #16
0
 public MoreThuenteLineSearch(CostFunction costfunction, EndCriteria endcriteria)
 {
     costFunction_ = costfunction;
     endCriteria_  = endcriteria;
 }
예제 #17
0
 ///<summary>Constructor for Secant Line Search</summary>
 public SecantLineSearch(CostFunction costfunction)
     : this(costfunction, new EndCriteria())
 {
 }
예제 #18
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria) 
   : this(costfunction, endcriteria, 1) {}
예제 #19
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria, double sigma_0)
     : this(costfunction, endcriteria, sigma_0, 50, 1e-8)
 {
 }
예제 #20
0
 public SecantLineSearch(CostFunction costfunction, EndCriteria endcriteria, double sigma_0)
   : this(costfunction, endcriteria, sigma_0, 50, 1e-8) {}
예제 #21
0
 ///<summary>Constructor for Conjugate Gradient Method. The constructor specifies the
 /// costfunction and optionally user specified ending criteria and line search methods.</summary>
 ///<param name="costfunction">Nonlinear cost function to minimize.</param>
 ///<remarks>This class began as a port of CG+ by Guanghui Lui, Jorge Nocedal and Richard Waltz
 /// to C#</remarks>
 ///<seealso href="http://www.ece.northwestern.edu/~rwaltz/CG+.html">CG+</seealso>
 public ConjugateGradient(CostFunction costfunction)
     : this(costfunction, new EndCriteria())
 {
 }
예제 #22
0
 ///<summary>Constructor for Newton-Raphson Line Search</summary>
 public NewtonRaphsonLineSearch(CostFunction costfunction)
     : this(costfunction, new EndCriteria())
 {
 }
예제 #23
0
 ///<summary>Constructor for Conjugate Gradient Method. The constructor specifies the
 /// costfunction and optionally user specified ending criteria and line search methods.</summary>
 ///<param name="costfunction">Nonlinear cost function to minimize.</param>
 ///<param name="endcriteria">User specified ending criteria.</param>
 ///<param name="lsm">User specified line search method, defaults to Secant line search method</param>
 public ConjugateGradient(CostFunction costfunction, EndCriteria endcriteria, LineSearchMethod lsm)
 {
     costFunction_     = costfunction;
     endCriteria_      = endcriteria;
     lineSearchMethod_ = lsm;
 }
예제 #24
0
		///<summary>Constructor for Newton-Raphson Line Search</summary>
		public NewtonRaphsonLineSearch(CostFunction costfunction)
			: this(costfunction, new EndCriteria()) { }