Skip to content

Commit 156d741

Browse files
committed
refactoring part 2
1 parent 23eb133 commit 156d741

14 files changed

+271
-161
lines changed

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PythonVRFT Library
1+
# PythonVRFT Library - Version 0.0.3
22
VRFT Adaptive Control Library written in Python.
33

44
**Author**: Alessio Russo (alessior.wordpress.com - russo.alessio@outlook.com)
@@ -13,13 +13,13 @@ Run the following command from root folder:
1313
```sh
1414
pip install .
1515
```
16-
Dependencies: numpy, scipy, control
16+
Dependencies: numpy, scipy
1717

1818
Tests
1919
------
2020
To execute tests run the following command
2121
```sh
22-
python setup.py test
22+
python -m unittest
2323
```
2424

2525
Examples
@@ -28,14 +28,9 @@ Examples are located in the examples/ folder. At the moment only 1 example is av
2828

2929
Objectives
3030
------
31-
- [**DONE**, 26.03.2017] Implement the basic VRFT algorithm (1 DOF. offline, linear controller, controller expressed as scalar product theta*f(z))
31+
- [**DONE - V0.0.2**][26.03.2017] Implement the basic VRFT algorithm (1 DOF. offline, linear controller, controller expressed as scalar product theta*f(z))
32+
- [**DONE - V0.0.3**][05.01.2020] Code refactoring and conversion to Python 3; Removed support for Python Control library.
3233
- [**TODO**] Add Documentation and Latex formulas
33-
- [**TODO**] Calculate best coefficients (based on H2 norm, with weights) given controller structure, reference system and actual system model. Show results.
34-
- [**TODO**] Modifications to LS (forgetting factor, covariance, ...)
35-
- [**TODO**] Implement multiple DOF, sensitivity analysis
36-
- [**TODO**] Implement online version
37-
- [**TODO**] Generalize to other kind of controllers
38-
- [**TODO**] Advanced work (non linear systems ?)
39-
40-
41-
34+
- [**TODO**] Add MIMO Support
35+
- [**TODO**] Add IV Support
36+
- [**TODO**] Generalize to other kind of controllers (e.g., neural nets)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cells": [],
3+
"metadata": {},
4+
"nbformat": 4,
5+
"nbformat_minor": 4
6+
}

examples/2_example.png

-48.5 KB
Binary file not shown.

examples/2_example.py

Lines changed: 0 additions & 94 deletions
This file was deleted.

examples/notebook_example_1.ipynb

Lines changed: 212 additions & 0 deletions
Large diffs are not rendered by default.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
author = 'Alessio Russo',
1010
author_email = 'alessior@kth.se',
1111
license='GPL3',
12-
packages=['vrft', 'test', 'vrft.utilities', 'vrft.vrft'],
12+
packages=['vrft', 'test'],
1313
zip_safe=False,
1414
install_requires = [
1515
'scipy',

test/test_iddata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from unittest import TestCase
2-
from vrft.utilities.iddata import iddata
2+
from vrft.iddata import iddata
33
import numpy as np
44

55
class TestIDData(TestCase):

test/test_reference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import TestCase
2-
from vrft.utilities.iddata import *
3-
from vrft.utilities.utils import *
4-
from vrft.vrft.vrft_algo import *
2+
from vrft.iddata import *
3+
from vrft.utils import *
4+
from vrft.vrft_algo import *
55
import numpy as np
66
import scipy.signal as scipysig
77

test/test_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from unittest import TestCase
2-
from vrft.utilities.utils import *
3-
from vrft.vrft.vrft_algo import virtualReference
2+
from vrft.utils import *
3+
from vrft.extended_tf import ExtendedTF
4+
from vrft.vrft_algo import virtualReference
45
import numpy as np
56
import scipy.signal as scipysig
67

test/test_vrft.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import TestCase
2-
from vrft.utilities.iddata import *
3-
from vrft.vrft.vrft_algo import *
4-
from vrft.utilities.utils import ExtendedTF
2+
from vrft.iddata import *
3+
from vrft.vrft_algo import *
4+
from vrft.extended_tf import ExtendedTF
55
import numpy as np
66
import scipy.signal as scipysig
77

0 commit comments

Comments
 (0)