-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type unstability in SymbolicWedderburn #388
Type unstability in SymbolicWedderburn #388
Comments
this is sure a pretty autumn mountains landscape! |
here's a smaller mwe: G, S = let m1
m1 = 3
M = ones(Int, m1, m1)
DP.@polyvar x[1:m1]
a = x[1:m1]
f = LA.dot(a, M, a)
S = [SemialgebraicSets.@set x[i]^2 == 1 for i in 1:m1]
generators = [PG.perm"(1,2,3)", PG.perm"(1,2)"]
let p = PG.gens(G, 1), v = MP.variables(S[1])
subs = v => SOS.Symmetry._map_idx(i -> v[i^p], v)
@code_warntype MP.pair_zip(MP._monomial_vector_to_variable_tuple(subs))
end
G, S
end warntype returns |
@kalmarek thanks for reducing it, the issue is clear now. This issue seems to have been introduced by JuliaAlgebra/MultivariatePolynomials.jl#268 |
@sebastiendesignolle should be fixed by DynamicPolynomials v0.6.1, let me know if that's not the case |
Just run it, and the profile looks way less colourful, thanks a lot! |
Given an$m\times m$ matrix $M$ , I'm interested in solving relaxations of the problem
in particular when the matrix$M$ is highly symmetric.
Here is the way I'm coding it at the moment, but this leads to a lot of unstability in the symmetry reduction, see the attached image.
Am I missing something simple?
Also, I'm just starting working with SOS.jl so any comments on my syntax is welcome.
Thanks in advance!
The text was updated successfully, but these errors were encountered: