rgolubtsov / nonlinear-optimization-algorithms-multilang

Nonlinear programming algorithms as the (un-)constrained minimization problems with the focus on their numerical expression using various programming languages.
The Unlicense
3 stars 6 forks source link

NLPUC: Nelder-Mead-c: Eliminate jumping through unconditional gotos. #39

Open rgolubtsov opened 9 years ago

rgolubtsov commented 9 years ago

In the struct optimum *nelmin(...) {...} function defined in the nelmin.c source replace unconditional gotos and related blocks with the equivalent structured constructs, helper functions for ex., etc. They are:

L1000:; ...
L2000:; ...
L3000:; ...
L4000:; ...

goto L1000; ...
goto L2000; ...
goto L3000; ...
goto L4000; ...