|
|
@ -2,7 +2,8 @@
|
|
|
|
using LinearAlgebra
|
|
|
|
using LinearAlgebra
|
|
|
|
using TypedPolynomials
|
|
|
|
using TypedPolynomials
|
|
|
|
using Distributed, SlurmClusterManager
|
|
|
|
using Distributed, SlurmClusterManager
|
|
|
|
addprocs(SlurmManager())
|
|
|
|
slurm_manager = SlurmManager()
|
|
|
|
|
|
|
|
addprocs(slurm_manager)
|
|
|
|
|
|
|
|
|
|
|
|
# Local deps
|
|
|
|
# Local deps
|
|
|
|
include("random-poly.jl")
|
|
|
|
include("random-poly.jl")
|
|
|
@ -99,7 +100,8 @@ vars = variables(R)
|
|
|
|
println("Solutions: ", sol)
|
|
|
|
println("Solutions: ", sol)
|
|
|
|
println("Norms (lower = better): ", [norm([f(vars => s) for f in R]) for s in sol])
|
|
|
|
println("Norms (lower = better): ", [norm([f(vars => s) for f in R]) for s in sol])
|
|
|
|
|
|
|
|
|
|
|
|
finalize(SlurmManager())
|
|
|
|
# See https://github.com/kleinhenz/SlurmClusterManager.jl/issues/11
|
|
|
|
|
|
|
|
finalize(slurm_manager)
|
|
|
|
|
|
|
|
|
|
|
|
# Plotting the system and the real solutions
|
|
|
|
# Plotting the system and the real solutions
|
|
|
|
# ENV["GKSwstype"] = "nul"
|
|
|
|
# ENV["GKSwstype"] = "nul"
|
|
|
|