File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ This enables automatic/numerical differentiation to obtain the Jacobian and deri
1010
1111# How to install and execute?
1212
13+ Tested on Python 3.6.2 and [ pacopy 0.1.0] ( https://github.com/sigma-py/pacopy/tree/branch-switching )
14+
1315Just run
1416```
1517pip install fcontin
@@ -19,6 +21,17 @@ The following program illustrates a basic example
1921``` python
2022from fcontin.ContProblem import ContProblem
2123
24+ # ##
25+ # Output record
26+ # ##
27+ lmbda_list = []
28+ values_list = []
29+
30+ def callback (k , lmbda , sol ):
31+ # Use the callback for plotting, writing data to files etc.
32+ lmbda_list.append(lmbda)
33+ values_list.append(sol)
34+
2235# ##
2336# Define problem
2437# ##
@@ -44,7 +57,7 @@ lmbda0 = 1.0
4457# Forward, Reverse, Numerical, Complex for jac_mode
4558problem = ContProblem(f, u0, lmbda0,
4659cont_method = ' Euler-Newton' ,
47- jac_mode = ' Complex ' ,
60+ jac_mode = ' Forward ' ,
4861max_steps = 10 ,
4962newton_tol = 1e-10 ,
5063callback = callback
Original file line number Diff line number Diff line change 11absl-py == 0.9.0
22cycler == 0.10.0
3- jax == 0.1.69
4- jaxlib == 0.1.47
3+ flatbuffers == 2.0.7
4+ jax == 0.2.17
5+ jaxlib == 0.1.69
56kiwisolver == 1.2.0
67matplotlib == 3.2.1
78numdifftools == 0.9.39
89numpy == 1.18.5
910opt-einsum == 3.2.1
10- pacopy == 0.1.2
11+ -e git+https://github.com/sigma-py/ pacopy.git@8d23487b356644421a25ce02462470acce5864f6#egg=pacopy
1112pyparsing == 2.4.7
1213python-dateutil == 2.8.1
1314scipy == 1.4.1
You can’t perform that action at this time.
0 commit comments