-
Notifications
You must be signed in to change notification settings - Fork 21
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
problem 10.7 of Betts' book #256
base: master
Are you sure you want to change the base?
Conversation
The file names have to start with |
This seems to run as a script but I am not seeing any output in the rendered html version. |
prob.plot_constraint_violations(solution) | ||
|
||
# Plot the objective function as a function of optimizer iteration. | ||
prob.plot_objective_value() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the plots will not show unless you return the axes from this function.
@@ -0,0 +1,123 @@ | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you rename a file you need to use git mv old_filename.py new_filename.py
, that way the old file doesn't remain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old filename does not show when I do "ls" in git. How can I remove it?
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I somehow seem to have managed to remove the old file...
Does this show the plots? |
Yes, it runs and shows the plots. I don't see any errors, as you mentioned in the other issue. |
You mean the error when I only have one scalar DE? NB:
|
You wrote "This program runs fine im VSC, but in examples-gallery it looks like it never evewn starts to be exceuted. here: #255 (comment) |
Sorry! This was fixed when I added the prefix "plot" to the name of the file, as you trold me, |
In this example I added one differential equation to the eoms, as opty currently requires at least two scalar DE in the eoms.