-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes and updated tests, bumping version to 0.4.2
- Loading branch information
1 parent
a3a4639
commit 0177c4d
Showing
37 changed files
with
358 additions
and
887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setup( | ||
name="pathsim", | ||
version="0.4.1", | ||
version="0.4.2", | ||
author="Milan Rother", | ||
author_email="[email protected]", | ||
description="A block based time domain system simulation framework.", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
######################################################################################## | ||
## | ||
## REFERENCE PROBLEMS FOR SOLVER TESTING | ||
## | ||
## Milan Rother 2024 | ||
## | ||
######################################################################################## | ||
|
||
# IMPORTS ============================================================================== | ||
|
||
import numpy as np | ||
|
||
|
||
# TEST PROBLEMS ======================================================================== | ||
|
||
class Problem: | ||
def __init__(self, name, func, jac, x0, solution): | ||
self.name = name | ||
self.func = func | ||
self.jac = jac | ||
self.x0 = x0 | ||
self.solution = solution | ||
|
||
|
||
#create some reference problems for testing | ||
problems = [ | ||
Problem(name="linear_feedback", | ||
func=lambda x, u, t: -x, | ||
jac=lambda x, u, t: -1, | ||
x0=1.0, | ||
solution=lambda t: np.exp(-t) | ||
), | ||
Problem(name="logistic", | ||
func=lambda x, u, t: x*(1-x), | ||
jac=lambda x, u, t: 1-2*x, | ||
x0=0.5, | ||
solution=lambda t: 1/(1 + np.exp(-t)) | ||
) | ||
] |
Oops, something went wrong.