Ticket #6408: ModelWithHomotopy.mo
File ModelWithHomotopy.mo, 336 bytes (added by , 4 years ago) |
---|
Line | |
---|---|
1 | model ModelWithHomotopy |
2 | |
3 | parameter Real startA = 1; |
4 | final parameter Real a(start=startA, fixed=false); |
5 | |
6 | Real x; |
7 | Real y; |
8 | initial equation |
9 | x^a = 2; |
10 | equation |
11 | x = 2; |
12 | y = homotopy(x, 3); |
13 | annotation( |
14 | __OpenModelica_simulationFlags(lv = "LOG_INIT_HOMOTOPY,LOG_NLS,LOG_NLS_V,LOG_STATS", s = "dassl")); |
15 | end ModelWithHomotopy; |