-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
We should have a feature that returns ConstraintBasis, GramBases and a structure that can be use to simplify examples/sos_problem.jl as well as SumOfSquares
Something like:
struct ConstraintBasis <: SA.ExplicitBasis
invariant_vectors
mstruct # gram_basis x gram_basis -> invariant_vector coefficients
end
struct GramBasis <: SA.ExplicitBasis
U
character_id
end
function mstructure(basis::ConstraintBasis, g1::GramBasis, g2::GramBasis)
@assert g1 == g2
return basis.mstruct[g1.character_id]
endThis will not assume that the gram basis is a subset of the constraint basis
Metadata
Metadata
Assignees
Labels
No labels