This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
optim:userguide [2019/07/08 11:47] helene |
optim:userguide [2022/05/27 10:05] (current) helene [Activation of Lagamine Inverse] |
||
---|---|---|---|
Line 14: | Line 14: | ||
==== Activation of Lagamine Inverse ==== | ==== Activation of Lagamine Inverse ==== | ||
- | In the *ex.dat file, the parameter IOPT (ninth parameter on the first line) must be set to 1 to activate the Lagamine Inverse simulation. It is also necessary to indicate an IDENT (5th parameter of first line) that allows the user to specify his curve in INVA.F and WSENSM.F (see <imgref image1>). | + | In the *ex.dat file, the parameter IOPT (ninth parameter on the first line) must be set to 1 to activate the Lagamine Inverse simulation. It is also necessary to indicate an IDENT (5th parameter of first line) that allows the user to specify his curve in INVA.F and WSENSM.F (see <imgref image1>). For the list of existing IDENT, see [[optim:ident|this page]]. |
<imgcaption image1|Example of *ex.dat file with activation of Lagamine Inverse>{{ :optim:optim_laginv1.png?600 |}}</imgcaption> | <imgcaption image1|Example of *ex.dat file with activation of Lagamine Inverse>{{ :optim:optim_laginv1.png?600 |}}</imgcaption> | ||
Line 93: | Line 93: | ||
* fdjac: interpolation of the derivatives and computation of matrix fdjac containing the derivative of the curves at points i. | * fdjac: interpolation of the derivatives and computation of matrix fdjac containing the derivative of the curves at points i. | ||
- | <imgcaption image6| Optim code structure>{{ :optim:optim_codestruct1.png |}}</imgcaption> | + | The algorithm can be summed up as follows: |
+ | * **MAIN_LEVENBERG** \\ Read *.info file, *.exp file, *.op file \\ Run prepro \\ Initialize variables and allocate memory \\ Call PRE_OPTIM | ||
+ | * **PRE_OPTIM** \\ Check input parameters \\ Initialize Optim parameters \\ Call ALGO_LEVEN | ||
+ | * **ALGO_LEVEN** \\ Check input parameters \\ Call: | ||
+ | * **FCN** \\ Launch Lagamine simulation \\ Read *.sm file \\ Compute EF and REF curves | ||
+ | * **ENORM** \\ Compute the norm (objective function) | ||
+ | * **FDJAC** \\ Compute sensitivity matrix (Jacobian) from *.sm file | ||
+ | * **QRFAC** \\ QR factorization of the Jacobian | ||
+ | * **LMPAR** \\ Determine Levenberg-Marcquardt parameters | ||
+ | * Check for convergence \\ If no -> loop \\ If yes -> end | ||
---- | ---- |