Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants