-
Notifications
You must be signed in to change notification settings - Fork 6
Documentation/new optimizer api #300
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
base: devel
Are you sure you want to change the base?
Conversation
This reverts commit 9729819.
This reverts commit 81a4bd9.
This reverts commit f0df653.
It is a simple and intuitive syntax and avoids declaring new types. Also allow specifying default constraint tolerance as `constraint_tol`.
use SemOptimizer(engine = :NLopt) instead of SemOptimizerNLopt() as this is a more universal scheme
It works around docstring errors during SemOptimizer{:E} parsing.
Instead of engine-specific subtype as it might be not available in the user session.
since it moved from struct to ctor
|
|
||
| """ | ||
| Uses *NLopt.jl* as the optimization engine. For more information on the available algorithms | ||
| and options, see the [*NLopt.jl*](https://github.com/JuliaOpt/NLopt.jl) package and the |
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.
[JuliaFormatter] reported by reviewdog 🐶
| and options, see the [*NLopt.jl*](https://github.com/JuliaOpt/NLopt.jl) package and the | |
| !isa(inequality_constraints, NamedTuple) || |
|
|
||
| # fallback optimizer constructor when the engine E is not supported | ||
| SemOptimizer(::Val{E}, args...; kwargs...) where {E} = throw_engine_error(E) | ||
|
|
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.
[JuliaFormatter] reported by reviewdog 🐶
| fit(SemOptimizer(; engine, kwargs...), model; start_val, kwargs...) |
| Returns a vector of optimizer engines supported by the `engine` keyword argument of | ||
| the [`SemOptimizer`](@ref) constructor. |
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.
[JuliaFormatter] reported by reviewdog 🐶
| Returns a vector of optimizer engines supported by the `engine` keyword argument of | |
| the [`SemOptimizer`](@ref) constructor. | |
| prepare_start_params(start_val, model::AbstractSem; kwargs...) = start_val(model; kwargs...) |
|
Docs can be previewed here: https://structuralequationmodels.github.io/StructuralEquationModels.jl/previews/PR300 |
|
Docs can be previewed here: https://structuralequationmodels.github.io/StructuralEquationModels.jl/previews/PR300 |
|
Docs can be previewed here: https://structuralequationmodels.github.io/StructuralEquationModels.jl/previews/PR300 |
|
Docs can be previewed here: https://structuralequationmodels.github.io/StructuralEquationModels.jl/previews/PR300 |
No description provided.