Skip to content

Commit 6c5fc52

Browse files
committed
updated version and README
1 parent ffcac42 commit 6c5fc52

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1315
Just run
1416
```
1517
pip install fcontin
@@ -19,6 +21,17 @@ The following program illustrates a basic example
1921
```python
2022
from 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
4558
problem = ContProblem(f, u0, lmbda0,
4659
cont_method='Euler-Newton',
47-
jac_mode='Complex',
60+
jac_mode='Forward',
4861
max_steps=10,
4962
newton_tol=1e-10,
5063
callback=callback

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
absl-py==0.9.0
22
cycler==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
56
kiwisolver==1.2.0
67
matplotlib==3.2.1
78
numdifftools==0.9.39
89
numpy==1.18.5
910
opt-einsum==3.2.1
10-
pacopy==0.1.2
11+
-e git+https://github.com/sigma-py/pacopy.git@8d23487b356644421a25ce02462470acce5864f6#egg=pacopy
1112
pyparsing==2.4.7
1213
python-dateutil==2.8.1
1314
scipy==1.4.1

0 commit comments

Comments
 (0)