Ticket #6408: ModelWithHomotopy2.mo

File ModelWithHomotopy2.mo, 370 bytes (added by Francesco Casella, 5 years ago)
Line 
1model ModelWithHomotopy2
2
3parameter Real startA = 1;
4final parameter Real a(start=startA, fixed=false);
5
6Real x;
7Real y;
8Real z;
9initial equation
10x^a = 2;
11equation
12x = 2;
13y = homotopy(x, 3);
14z+ 1e-3*sin(z) = 4*y;
15annotation(
16 __OpenModelica_simulationFlags(lv = "LOG_INIT_HOMOTOPY,LOG_NLS,LOG_NLS_V,LOG_STATS", s = "dassl"));
17end ModelWithHomotopy2;