Skip to content
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

Betts 10 1 #269

Closed
wants to merge 13 commits into from
Closed

Betts 10 1 #269

wants to merge 13 commits into from

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Nov 24, 2024

This example may be a candidate for examples gallery for this reason:

In addition to the four equations of motion for the state variables $y_1,...y_4$ there is an inequality these variables must fulfill:
$y_1^2 + y_2^2 + y_3^2 + y_4^2 \geq$ function(time, parameters).
As presently opty does not allow inequalities, I introduced an additional state variable fact and made
$y_1^2 + y_2^2 + y_3^2 + y_4^2$ = fact $\cdot$ function(time, parameters) the fifth eom. I restrict fact $\geq 1.0$.
This should be equivalent to the inequality, as long as function(time, parameters $\geq 0$ throughout the interval considered, as is the case here.

The minimum I get with opty is actually about 5% lower than the value given in the book, the solutions look similar to the ones given in the book.

@Peter230655
Copy link
Contributor Author

I made a new PR #308 as I could not fix the branch. Hence I close it.

@Peter230655 Peter230655 deleted the betts-10-1 branch January 28, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants