Ticket #6408: ModelWithHomotopy.mo

File ModelWithHomotopy.mo, 336 bytes (added by Francesco Casella, 4 years ago)

A small model with homotopy

Line 
1model ModelWithHomotopy
2
3parameter Real startA = 1;
4final parameter Real a(start=startA, fixed=false);
5
6Real x;
7Real y;
8initial equation
9x^a = 2;
10equation
11x = 2;
12y = homotopy(x, 3);
13annotation(
14 __OpenModelica_simulationFlags(lv = "LOG_INIT_HOMOTOPY,LOG_NLS,LOG_NLS_V,LOG_STATS", s = "dassl"));
15end ModelWithHomotopy;