Skip to content

Commit

Permalink
test_ad and test_systems pass
Browse files Browse the repository at this point in the history
  • Loading branch information
fhchl committed Sep 28, 2023
1 parent 3543ee3 commit 1ab8327
Show file tree
Hide file tree
Showing 4 changed files with 251 additions and 290 deletions.
4 changes: 2 additions & 2 deletions dynax/example_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ class Sastry9_9(ControlAffine):
"""Sastry Example 9.9"""

def f(self, x):
return (0.0, x[0] + x[1] ** 2, x[0] - x[1])
return jnp.array([0.0, x[0] + x[1] ** 2, x[0] - x[1]])

def g(self, x):
return (jnp.exp(x[1]), jnp.exp(x[1]), 0.0)
return jnp.array([jnp.exp(x[1]), jnp.exp(x[1]), 0.0])

def h(self, x):
return x[2]
Expand Down
Loading

0 comments on commit 1ab8327

Please sign in to comment.