commit:2019:08_13
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
commit:2019:08_13 [2019/08/14 22:29] – [Structural Line Search - Refactoring] wautelet | commit:2019:08_13 [2019/08/14 22:56] (current) – [Commit 2019-08-13] wautelet | ||
---|---|---|---|
Line 4: | Line 4: | ||
<note important> | <note important> | ||
+ | |||
+ | Pour mon prochain commit, il y aura une nouvelle implémentation du Line Search Structural plus performante que celle actuelle. | ||
==== Structural Line Search - Refactoring ==== | ==== Structural Line Search - Refactoring ==== | ||
Line 15: | Line 17: | ||
mim = metafor.getIterationManager() | mim = metafor.getIterationManager() | ||
lineSearch = FullStepStructuralLineSearch(mim) | lineSearch = FullStepStructuralLineSearch(mim) | ||
- | lineSearch.setVerbose(True|False) | + | lineSearch.setVerbose(boolParameter|default value = False) |
- | lineSearch.setDebug(True|False) | + | lineSearch.setDebug(boolParameter|default value = False) |
mim.setStructuralLineSearch(lineSearch) | mim.setStructuralLineSearch(lineSearch) | ||
- | <\code> | + | </code> |
<note important> | <note important> | ||
Line 26: | Line 28: | ||
Cette méthode correspond au Line Search Structural programmée par Ludovic Noëls. Je remets ici les différents paramètres d' | Cette méthode correspond au Line Search Structural programmée par Ludovic Noëls. Je remets ici les différents paramètres d' | ||
+ | < | ||
+ | mim = metafor.getIterationManager() | ||
+ | lineSearch = StandardStructuralLineSearch(mim) | ||
+ | lineSearch.setVerbose(boolParameter|default value = False) | ||
+ | lineSearch.setDebug(boolParameter|default value = False) | ||
+ | lineSearch.setMaxNbOfLineSearchIterations(integerParameter|default value = 10); | ||
+ | lineSearch.setLineSearchTolerance1(doubleParameter|default value = 1.0); | ||
+ | lineSearch.setLineSearchTolerance2(doubleParameter|default value = 1.0E-8); | ||
+ | lineSearch.setAbsMaxLineSearchCoefficient(doubleParameter|default value = 10.0); | ||
+ | lineSearch.setAbsMinLineSearchCoefficient(doubleParameter|default value = 0.0); | ||
+ | mim.setStructuralLineSearch(lineSearch) | ||
+ | </ | ||
Désormais, il est possible de normaliser le résidu du Line Search Structural via la commande suivante : | Désormais, il est possible de normaliser le résidu du Line Search Structural via la commande suivante : | ||
- | On divise tout simplement les résidus du Line Search Structural par la valeur obtenue à l' | + | < |
+ | lineSearch.setUseNormalisedCriterion(boolParameter|default value = False) | ||
+ | </ | ||
+ | |||
+ | On divise tout simplement les résidus du Line Search Structural par la valeur obtenue à l' | ||
==== Jeux de données - Structural Line Search ==== | ==== Jeux de données - Structural Line Search ==== |
commit/2019/08_13.1565814586.txt.gz · Last modified: 2019/08/14 22:29 by wautelet