Open guoquan opened 4 years ago
ASTLogicSolver gives you the expression tree, you can create linear constraints from it as you like.
The default behavior treats operant as torch.tensor. Should I override the solver (and probably the whole set of operators) to support another operant type?
Let's talk about this next meeting. We talked about the logic expression being present, so converting should be easy.
I am trying to implement an ILP solver based on
ASTLogicSolver
. However, I realize the Tnorm transformation generates non-linear constraints by using*
to implementand
andor
. It should be possible to implement these ops in linear form, such that these constraints can be used in ILP.