Giter Club home page Giter Club logo

Comments (9)

PBrdng avatar PBrdng commented on August 18, 2024 1

Hi,

first of all: Thanks, for trying out our package :)

This code was written by Oliver Gäfvert, so I don't know exactly what it does. I will send him an email asking if he could at your error.

from homotopycontinuation.jl.

PBrdng avatar PBrdng commented on August 18, 2024

@danielplatt I have not heard back from Oliver, unfortunately.

This morning I had some time to look at the code and fixed the problem. Can you check if it works for you now?

from homotopycontinuation.jl.

danielplatt avatar danielplatt commented on August 18, 2024

@PBrdng Thanks! For which version is this code now? When running it, the line result = solve(system) gives me the error:

ERROR: ArgumentError: `variable_ordering = ...` needs to be passed as a keyword argument to indicate the order of the variables.
Stacktrace:
 [1] input_startsolutions(::Vector{HomotopyContinuation.ModelKit.Operation}; variable_ordering::Nothing, parameters::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ HomotopyContinuation ~/.julia/packages/HomotopyContinuation/mJDHb/src/input.jl:150
 [2] problem_startsolutions(args::Any; seed::Any, variable_ordering::Any, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ HomotopyContinuation ~/.julia/packages/HomotopyContinuation/mJDHb/src/problems.jl:367
 [3] problem_startsolutions
   @ ~/.julia/packages/HomotopyContinuation/mJDHb/src/problems.jl:365 [inlined]
 [4] solver_startsolutions(args::Vector{HomotopyContinuation.ModelKit.Operation}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ HomotopyContinuation ~/.julia/packages/HomotopyContinuation/mJDHb/src/solver.jl:124
 [5] solver_startsolutions
   @ ~/.julia/packages/HomotopyContinuation/mJDHb/src/solver.jl:123 [inlined]
 [6] solve(args::Vector{HomotopyContinuation.ModelKit.Operation}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ HomotopyContinuation ~/.julia/packages/HomotopyContinuation/mJDHb/src/solver.jl:540
 [7] solve(args::Vector{HomotopyContinuation.ModelKit.Operation})
   @ HomotopyContinuation ~/.julia/packages/HomotopyContinuation/mJDHb/src/solver.jl:539
 [8] top-level scope
   @ REPL[17]:1

My packages and their versions are:

(@v1.7) pkg> status
      Status `~/.julia/environments/v1.7/Project.toml`
  [7c1d4256] DynamicPolynomials v0.3.21
  [9c0f25c4] Eirene v1.3.5
  [f213a82b] HomotopyContinuation v1.4.4
  [7073ff75] IJulia v1.23.3
  [c8e1da08] IterTools v1.4.0
  [f0f68f2c] PlotlyJS v0.14.1
  [91a5bcdd] Plots v1.6.8

I use the old version HomotopyContinuation v1.4.4 because it was recommended for another piece of code, but not specifically for this example.

from homotopycontinuation.jl.

PBrdng avatar PBrdng commented on August 18, 2024

I use Julia 1.7.2 and HomotopyContinuation.jl 2.6.4.

from homotopycontinuation.jl.

danielplatt avatar danielplatt commented on August 18, 2024

Thanks! Can you add using Plots before

scatter(sample_matrix[1,:], sample_matrix[2,:],
        legend = false)

Then that code works perfectly for me. Other users may benefit from the information that this was tested with Julia 1.7.2 and HomotopyContinuation.jl 2.6.4.

from homotopycontinuation.jl.

PBrdng avatar PBrdng commented on August 18, 2024

Good point. I added the using Plots. Thanks! :)

Where exactly is the information that one should a version different than the most recent one?

from homotopycontinuation.jl.

danielplatt avatar danielplatt commented on August 18, 2024

"Where exactly is the information that one should a version different than the most recent one?" Oliver advised me to do this via email. But that was pertaining to a different piece of code that used an old function (pathfinder? I'm not sure anymore). So, he never said anything wrong, and I believe there is no published info saying to use an old version to run the code on the website.

Writing down the version number was just an idea to make that website future proof, in case any of the packages discontinue one of the functions used.

from homotopycontinuation.jl.

PBrdng avatar PBrdng commented on August 18, 2024

I see. This is a good point. I'll think about how to implement it. Thanks!

Can I close this issue then?

from homotopycontinuation.jl.

danielplatt avatar danielplatt commented on August 18, 2024

Yes, the issue can be closed. Thank you very much for all your help!

from homotopycontinuation.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.