Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

NelderMeadSimplex.Minimum() throws exception

$
0
0

@Mattias_Andersson wrote:

Hi all,
I’ve got the following code:

// F, I, Precision and MaxEvaluations are defined elsewhere
try
{
	var Function = ObjectiveFunction.Value(new Func<Vector<double>, double>(z => F(z.AsArray())));
	var InitialGuess = new DenseVector(I);
	var result = NelderMeadSimplex.Minimum(Function, InitialGuess, Precision, MaxEvaluations);
}
catch (MaximumIterationsException)
{
}

In case the Minimum function throws a MaximumIterationsException, is there any way to retrieve any information about the simplex result or last guess?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles