Overview
Comment: | Relaxed solver tolerances. Now uses lsqnonlin instead of fsolve. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
81c5547cbf78093d1774e6a58702d85d |
User & Date: | geraint@users.sourceforge.net on 2002-06-18 18:04:12 |
Other Links: | branch diff | manifest | tags |
Context
2002-06-21
| ||
20:02:34 | New identification representation check-in: a66095af7e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2002-06-18
| ||
18:04:12 | Relaxed solver tolerances. Now uses lsqnonlin instead of fsolve. check-in: 81c5547cbf user: geraint@users.sourceforge.net tags: origin/master, trunk | |
18:03:16 | Appended "memory" blocks to plant model outputs to break simulink algebraic loops. check-in: ecb4011cd5 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/rep/sfun_rep/sfun.c.tmpl from [f3d464f305] to [79b281c10a].
︙ | ︙ | |||
161 162 163 164 165 166 167 | mxSetName (MTT_MATLAB_P, "MTT_P"); p = mxGetPr (MTT_MATLAB_P); for (i = 0; i < MTTNPAR; i++) { p[i] = mttpar[i]; } mexPutArray (MTT_MATLAB_P, "base"); | | | | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | mxSetName (MTT_MATLAB_P, "MTT_P"); p = mxGetPr (MTT_MATLAB_P); for (i = 0; i < MTTNPAR; i++) { p[i] = mttpar[i]; } mexPutArray (MTT_MATLAB_P, "base"); /* call solver */ mexEvalString ("MTT_Ui = lsqnonlin (@<mtt_model_name>_sfun_ae, MTT_Ui, [], [], optimset('display','off','diagnostics','off','TolX',1e-2,'TolFun',1e-2), MTT_X, MTT_U, MTT_T, MTT_P);"); /* retrieve result */ MTT_MATLAB_Ui = mexGetArray ("MTT_Ui", "base"); p = mxGetPr (MTT_MATLAB_Ui); for (i = 0; i < MTTNYZ; i++) { mttu[MTTNU + i] = p[i]; } |
︙ | ︙ |