Exemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="Algorithm"/> class.
 /// </summary>
 /// <param name="optimizer">The <see cref="GoldenSectionSearchOptimizer"/> object that serves as factory of the current object.</param>
 /// <param name="constraint">The constraint in its <see cref="OneDimOptimizerConstraint"/> representation.</param>
 internal Algorithm(GoldenSectionSearchOptimizer optimizer, OneDimOptimizerConstraint constraint)
 {
     m_Optimizer  = optimizer;
     m_Constraint = constraint;
 }
Exemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="Algorithm"/> class.
 /// </summary>
 /// <param name="optimizer">The <see cref="BrentOptimizer"/> object that serves as factory of the current object.</param>
 /// <param name="constraint">The constraint in its <see cref="OneDimOptimizerConstraint"/> representation.</param>
 internal Algorithm(BrentOptimizer optimizer, OneDimOptimizerConstraint constraint)
 {
     m_Optimizer  = optimizer;
     m_Constraint = constraint;
 }