@@ -682,72 +682,3 @@ function Base.:(==)(sys1::NonlinearSystem, sys2::NonlinearSystem)
682682 _eq_unordered (get_ps (sys1), get_ps (sys2)) &&
683683 all (s1 == s2 for (s1, s2) in zip (get_systems (sys1), get_systems (sys2)))
684684end
685-
686- """
687- $(TYPEDEF)
688-
689- A type of Nonlinear problem which specializes on polynomial systems and uses
690- HomotopyContinuation.jl to solve the system. Requires importing HomotopyContinuation.jl to
691- create and solve.
692- """
693- struct HomotopyContinuationProblem{uType, H, D, O, SS, U} < :
694- SciMLBase. AbstractNonlinearProblem{uType, true }
695- """
696- The initial values of states in the system. If there are multiple real roots of
697- the system, the one closest to this point is returned.
698- """
699- u0:: uType
700- """
701- A subtype of `HomotopyContinuation.AbstractSystem` to solve. Also contains the
702- parameter object.
703- """
704- homotopy_continuation_system:: H
705- """
706- A function with signature `(u, p) -> resid`. In case of rational functions, this
707- is used to rule out roots of the system which would cause the denominator to be
708- zero.
709- """
710- denominator:: D
711- """
712- The `NonlinearSystem` used to create this problem. Used for symbolic indexing.
713- """
714- sys:: NonlinearSystem
715- """
716- A function which generates and returns observed expressions for the given system.
717- """
718- obsfn:: O
719- """
720- The HomotopyContinuation.jl solver and start system, obtained through
721- `HomotopyContinuation.solver_startsystems`.
722- """
723- solver_and_starts:: SS
724- """
725- A function which takes a solution of the transformed system, and returns a vector
726- of solutions for the original system. This is utilized when converting systems
727- to polynomials.
728- """
729- unpack_solution:: U
730- end
731-
732- function HomotopyContinuationProblem (:: AbstractSystem , _u0, _p; kwargs... )
733- error (" HomotopyContinuation.jl is required to create and solve `HomotopyContinuationProblem`s. Please run `Pkg.add(\" HomotopyContinuation\" )` to continue." )
734- end
735-
736- SymbolicIndexingInterface. symbolic_container (p:: HomotopyContinuationProblem ) = p. sys
737- SymbolicIndexingInterface. state_values (p:: HomotopyContinuationProblem ) = p. u0
738- function SymbolicIndexingInterface. set_state! (p:: HomotopyContinuationProblem , args... )
739- set_state! (p. u0, args... )
740- end
741- function SymbolicIndexingInterface. parameter_values (p:: HomotopyContinuationProblem )
742- parameter_values (p. homotopy_continuation_system)
743- end
744- function SymbolicIndexingInterface. set_parameter! (p:: HomotopyContinuationProblem , args... )
745- set_parameter! (parameter_values (p), args... )
746- end
747- function SymbolicIndexingInterface. observed (p:: HomotopyContinuationProblem , sym)
748- if p. obsfn != = nothing
749- return p. obsfn (sym)
750- else
751- return SymbolicIndexingInterface. observed (p. sys, sym)
752- end
753- end
0 commit comments