You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (mcon == m) then
acca = step +0.1_wp* resmax
accb = step +0.2_wp* resmax
if (step >= acca .or. acca >= accb) go to480
step = min (step, resmax)
end if
The break L_70 statement takes the Java code to line 1184:
if (step == stpful) returntrue;
This is equivalent to a go to statement to the line just above the label 480 in the original Fortran. In this case, the condition step == stpful is always true, resulting in a premature exit from trstlp, causing it to return a step of size zero, while claiming to have taken a full step and thus multiple evaluations of sample points.
In order to match the effects of the go to 480 statement in the Fortran code, the break L_70 statement should instead be continue L_60.
The text was updated successfully, but these errors were encountered:
On line 1078 of Cobyla.java, there is a deviation from the behavior of the original Fortran code:
This corresponds to the following Fortran code:
The
break L_70
statement takes the Java code to line 1184:This is equivalent to a go to statement to the line just above the label 480 in the original Fortran. In this case, the condition
step == stpful
is always true, resulting in a premature exit fromtrstlp
, causing it to return a step of size zero, while claiming to have taken a full step and thus multiple evaluations of sample points.In order to match the effects of the
go to 480
statement in the Fortran code, thebreak L_70
statement should instead becontinue L_60
.The text was updated successfully, but these errors were encountered: