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

New tutorials and docs #788

Merged
merged 8 commits into from
Aug 7, 2024
Merged

New tutorials and docs #788

merged 8 commits into from
Aug 7, 2024

Conversation

Vaibhavdixit02
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@@ -1,41 +1,39 @@
# Getting Started with Optimization in Julia
# Getting Started with Optimization.jl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title of "in Julia" is a much nicer introduction to folks who are coming from outside of Julia, since this is likely to be the first page they hit. Though we may need to make an even higher level that also includes a bit of details on how to install. Catalyst.jl has done this really well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's maybe a bit presumptive and I don't feel comfortable with that title, the tutorial is for this package so this title makes more sense than saying it shows how to do optimization in julia because then it should cover other packages that can be used to do optimization

using OptimizationBBO
prob = OptimizationProblem(rosenbrock, u0, p, lb = [-1.0, -1.0], ub = [1.0, 1.0])
sol = solve(prob, BBO_adaptive_de_rand_1_bin_radiuslimited())
sol = solve(prob, Optimization.LBFGS())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed this is a much better first intro method.

prob = OptimizationProblem(optf, u0, p, lb = [-1.0, -1.0], ub = [1.0, 1.0])
sol = solve(prob, NelderMead())
using OptimizationOptimJL
sol = solve(prob, Optim.NelderMead())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably shouldn't lead people to NelderMead at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a derivative-free local method it's decent and Optim is quite popular so it makes sense to have it for now, PRIMA has been working pretty well for me on some problems and we might want to start highlighting that more but I am still not as sure about it

@Vaibhavdixit02 Vaibhavdixit02 merged commit 255a7bf into master Aug 7, 2024
10 of 12 checks passed
@Vaibhavdixit02 Vaibhavdixit02 deleted the newdocs branch August 7, 2024 23:25
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