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

Added MOO functionality to functions.jl #75

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

ParasPuneetSingh
Copy link
Contributor

I have added an _instantiate_function that works for MOO in functions.jl

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.

I have updated the instantiate_function to handle the MOOFunction.
Updated instantiate_function to work for MOO in function.jl
Changed the position of the MOO function checks in instantiate_function.
src/function.jl Outdated
observed = f.observed)
end

function instantiate_function(f::MultiObjectiveOptimizationFunction, x, adtype::ADTypes.AbstractADType,
Copy link
Member

Choose a reason for hiding this comment

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

Remove this and change the dispatch of this on OptimizationFunction to AbstractOptimizationFunction

Copy link
Member

Choose a reason for hiding this comment

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

Actually that doesn't even have a type on f right now so I think it should just work so you can just remove this

Removed the dispatch as per the review comment.
@Vaibhavdixit02 Vaibhavdixit02 merged commit 8f6be9d into SciML:main Aug 12, 2024
1 of 5 checks passed
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