From: aml Date: Fri, 6 May 2016 11:57:20 +0000 (+0300) Subject: 0027475: Incomplete direction for Powell method in math_GlobOptMin X-Git-Tag: V7_0_winwerth~58 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=aa1b48c7ddb04fdaa38cefcc6a540f7ff0cdd6f6;p=occt.git 0027475: Incomplete direction for Powell method in math_GlobOptMin Directions are changed to be valid orthogonal set. --- diff --git a/src/math/math_GlobOptMin.cxx b/src/math/math_GlobOptMin.cxx index abe10831c9..8008ab33da 100644 --- a/src/math/math_GlobOptMin.cxx +++ b/src/math/math_GlobOptMin.cxx @@ -313,7 +313,7 @@ Standard_Boolean math_GlobOptMin::computeLocalExtremum(const math_Vector& thePnt { math_Matrix m(1, myN, 1, myN, 0.0); for(i = 1; i <= myN; i++) - m(1, 1) = 1.0; + m(i, i) = 1.0; math_Powell powell(*myFunc, 1e-10); powell.Perform(*myFunc, thePnt, m);