-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opty does not accept only one scalar differential equation #255
Comments
Yes, opty assumes you are working with a physics system that has a mass and forces, thus you always get at least one second order differential equation. |
Makes sense. |
I think that the only assumption is that there are n states and n equations, where n is > 1. Two things:
|
|
This issues is sufficient for the request for support for single first order differential equations. |
Not sure I understand. Raise a new issue or not? |
This is the issue, no new issue is needed. |
You could try removing https://github.com/csu-hmc/opty/blob/master/opty/direct_collocation.py#L1184 and just see what happens. |
I will try in the next couple of days and report. |
This program runs fine im VSC, but in examples-gallery it looks like it never evewn starts to be exceuted.
|
You need to open a PR with the new example if you want help with it. Otherwise we can't run it in context or see what errors the CI produces. |
Will do so tomorrow morning. |
I opened PR 256 this morning. |
Problem was the wrong file name. For examples-gallery it must start with plot_... |
Reopened, this is still an issue we can solve. |
I thought you set up examples-gallery like this on purpose. |
This issue is about opty needing support for one scalar differential equation. When we add that support, we can close this issue. |
This is what I get for mixing two things in the same issue! Sorry! |
Problem 10.7 in Chapter 10 of John T. Betts' Practical Methods for....., 3rd edition, only has one scalar differential equation:
$\dot y = - y^3 + u$ , where u is the control.
When I run it, I get this error:
When I 'artificially' enlarge the system:
$uy = \dfrac{d}{dt} y$
$uy = - y^3 + u$
all works fine and it find the solution.
This is definitely not a big thing, it is probably a rare case that there is only one scalar DE, but I wanted to point it out.
The text was updated successfully, but these errors were encountered: