|
|
#region Copyright © 2009, De Santiago-Castillo JA. All rights reserved.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Text;
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
namespace DotNumerics.Optimization
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class xMinimizationBase
|
|
|
{
|
|
|
|
|
|
#region Fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected double[] _Variables;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected double[] _FreeVariables;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected double _Tolerance = 1e-6;
|
|
|
|
|
|
|
|
|
|
|
|
protected int _MaxFunEvaluations = 3000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected int _FunEvaluations = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected int _NumFreeVariables = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Properties
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int MaxFunEvaluations
|
|
|
{
|
|
|
get { return _MaxFunEvaluations; }
|
|
|
set { _MaxFunEvaluations = value; }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int FunEvaluations
|
|
|
{
|
|
|
get { return _FunEvaluations; }
|
|
|
set { _FunEvaluations = value; }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public double Tolerance
|
|
|
{
|
|
|
get { return _Tolerance; }
|
|
|
set
|
|
|
{
|
|
|
_Tolerance = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region Methods
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|