@@ -866,72 +866,3 @@ function Base.:(==)(sys1::NonlinearSystem, sys2::NonlinearSystem)
866866 _eq_unordered (get_ps (sys1), get_ps (sys2)) &&
867867 all (s1 == s2 for (s1, s2) in zip (get_systems (sys1), get_systems (sys2)))
868868end
869-
870- """
871- $(TYPEDEF)
872-
873- A type of Nonlinear problem which specializes on polynomial systems and uses
874- HomotopyContinuation.jl to solve the system. Requires importing HomotopyContinuation.jl to
875- create and solve.
876- """
877- struct HomotopyContinuationProblem{uType, H, D, O, SS, U} < :
878- SciMLBase. AbstractNonlinearProblem{uType, true }
879- """
880- The initial values of states in the system. If there are multiple real roots of
881- the system, the one closest to this point is returned.
882- """
883- u0:: uType
884- """
885- A subtype of `HomotopyContinuation.AbstractSystem` to solve. Also contains the
886- parameter object.
887- """
888- homotopy_continuation_system:: H
889- """
890- A function with signature `(u, p) -> resid`. In case of rational functions, this
891- is used to rule out roots of the system which would cause the denominator to be
892- zero.
893- """
894- denominator:: D
895- """
896- The `NonlinearSystem` used to create this problem. Used for symbolic indexing.
897- """
898- sys:: NonlinearSystem
899- """
900- A function which generates and returns observed expressions for the given system.
901- """
902- obsfn:: O
903- """
904- The HomotopyContinuation.jl solver and start system, obtained through
905- `HomotopyContinuation.solver_startsystems`.
906- """
907- solver_and_starts:: SS
908- """
909- A function which takes a solution of the transformed system, and returns a vector
910- of solutions for the original system. This is utilized when converting systems
911- to polynomials.
912- """
913- unpack_solution:: U
914- end
915-
916- function HomotopyContinuationProblem (:: AbstractSystem , _u0, _p; kwargs... )
917- error (" HomotopyContinuation.jl is required to create and solve `HomotopyContinuationProblem`s. Please run `Pkg.add(\" HomotopyContinuation\" )` to continue." )
918- end
919-
920- SymbolicIndexingInterface. symbolic_container (p:: HomotopyContinuationProblem ) = p. sys
921- SymbolicIndexingInterface. state_values (p:: HomotopyContinuationProblem ) = p. u0
922- function SymbolicIndexingInterface. set_state! (p:: HomotopyContinuationProblem , args... )
923- set_state! (p. u0, args... )
924- end
925- function SymbolicIndexingInterface. parameter_values (p:: HomotopyContinuationProblem )
926- parameter_values (p. homotopy_continuation_system)
927- end
928- function SymbolicIndexingInterface. set_parameter! (p:: HomotopyContinuationProblem , args... )
929- set_parameter! (parameter_values (p), args... )
930- end
931- function SymbolicIndexingInterface. observed (p:: HomotopyContinuationProblem , sym)
932- if p. obsfn != = nothing
933- return p. obsfn (sym)
934- else
935- return SymbolicIndexingInterface. observed (p. sys, sym)
936- end
937- end
0 commit comments