Skip to content

Conversation

@thimotedupuch
Copy link
Contributor

I made use of ternary operator to refactor the code. I also used the fact that occursin() accepts regex.

Note : maybe SciMLBase.requiresconsjac(opt::NLopt.Algorithm) should just return SciMLBase.allowsconstraints(opt) as they are pretty much doing the same thing to the same argument ?

@ChrisRackauckas ChrisRackauckas merged commit fd771c8 into SciML:master May 30, 2025
21 of 25 checks passed
@ChrisRackauckas
Copy link
Member

Note : maybe SciMLBase.requiresconsjac(opt::NLopt.Algorithm) should just return SciMLBase.allowsconstraints(opt) as they are pretty much doing the same thing to the same argument ?

yeah that's another small improvement that can be made.

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