Variable Encoding #31
Labels
enhancement
New feature or request
idea
This is just an idea
next steps
Interesting follow-up feature
We are currently dealing with variables according to a
::Symbol
parameter used to chose how encoding and expansion takes place.The current
VirtualVariable
UI takes:I'm considering refactoring our UI using something like an
EncodingType
in a similiar fashion as we did with quadratization methods.The expansion is currently done via
Base.iterate(::VirtualVariable)
andBase.collect(::VirtualVarible)
. Both methods yield::Set{VI}, ::Float64
pairs, which is very PBF-friendly. Indeed, the syntaxPBF{VI, Float64}(collect(::VirtualVariable{VI, Float64}))
works very well.A more suitable output UI should also be under investigation since one-hot-encoding (our next milestone) requires the addition of a uniqueness constraint among the generated variables.
The text was updated successfully, but these errors were encountered: