#region Copyright © 2009, De Santiago-Castillo JA. All rights reserved.
//Copyright © 2009 Jose Antonio De Santiago-Castillo
//E-mail:JAntonioDeSantiago@gmail.com
//Web: www.DotNumerics.com
//
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace DotNumerics.Optimization
{
///
/// Represents a base class for optimization classes.
///
public abstract class xMinimizationBase
{
#region Fields
///
/// All the variables.
///
protected double[] _Variables;
///
/// The initial guess .
///
protected double[] _FreeVariables;
///
/// Desired accuracy for the solution.
///
protected double _Tolerance = 1e-6;
///
/// Maximum number of function evaluations.
///
protected int _MaxFunEvaluations = 3000;
///
/// The number of function evaluations used to compute the minimum.
///
protected int _FunEvaluations = 0;
///
/// The number of variables.
///
protected int _NumFreeVariables = 0;
//protected bool MeAreOptVariables = false;
//protected bool MeAreBoundVariables = false;
#endregion
#region Properties
///
/// Maximum number of function evaluations.
///
public int MaxFunEvaluations
{
get { return _MaxFunEvaluations; }
set { _MaxFunEvaluations = value; }
}
///
/// The number of function evaluations used to compute the minimum.
///
public int FunEvaluations
{
get { return _FunEvaluations; }
set { _FunEvaluations = value; }
}
///
/// Desired accuracy for the solution.
///
public double Tolerance
{
get { return _Tolerance; }
set
{
_Tolerance = value;
}
}
#endregion
#region Methods
//internal
#endregion
}
}