forked from tsai/mathnet-numerics
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
64 lines
1.9 KiB
using System;
|
|
|
|
namespace MathNet.Numerics.Optimization
|
|
{
|
|
public class OptimizationException : Exception
|
|
{
|
|
public OptimizationException(string message)
|
|
: base(message) { }
|
|
|
|
public OptimizationException(string message, Exception inner_exception)
|
|
: base(message, inner_exception) { }
|
|
}
|
|
|
|
public class MaximumIterationsException : OptimizationException
|
|
{
|
|
public MaximumIterationsException(string message)
|
|
: base(message) { }
|
|
}
|
|
|
|
public class EvaluationException : OptimizationException
|
|
{
|
|
public IObjectiveFunction ObjectiveFunction { get; private set; }
|
|
|
|
public EvaluationException(string message, IObjectiveFunction eval)
|
|
: base(message)
|
|
{
|
|
this.ObjectiveFunction = eval;
|
|
}
|
|
|
|
public EvaluationException(string message, IObjectiveFunction eval, Exception inner_exception)
|
|
: base(message, inner_exception)
|
|
{
|
|
this.ObjectiveFunction = eval;
|
|
}
|
|
|
|
//public EvaluationException(string message, IEvaluation1D eval)
|
|
// : base(message)
|
|
//{
|
|
// this.Evaluation = new OneDEvaluationExpander(eval);
|
|
//}
|
|
|
|
//public EvaluationException(string message, IEvaluation1D eval, Exception inner_exception)
|
|
// : base(message, inner_exception)
|
|
//{
|
|
// this.Evaluation = new OneDEvaluationExpander(eval);
|
|
//}
|
|
|
|
}
|
|
|
|
public class InnerOptimizationException : OptimizationException
|
|
{
|
|
public InnerOptimizationException(string message)
|
|
: base(message) { }
|
|
|
|
public InnerOptimizationException(string message, Exception inner_exception)
|
|
: base(message, inner_exception) { }
|
|
}
|
|
|
|
public class IncompatibleObjectiveException : OptimizationException
|
|
{
|
|
public IncompatibleObjectiveException(string message)
|
|
: base(message) { }
|
|
}
|
|
}
|
|
|