Skip to content
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

Linear form constraint needed for ILP #12

Open
guoquan opened this issue Aug 6, 2020 · 3 comments
Open

Linear form constraint needed for ILP #12

guoquan opened this issue Aug 6, 2020 · 3 comments

Comments

@guoquan
Copy link
Contributor

guoquan commented Aug 6, 2020

I am trying to implement an ILP solver based on ASTLogicSolver. However, I realize the Tnorm transformation generates non-linear constraints by using * to implement and and or. It should be possible to implement these ops in linear form, such that these constraints can be used in ILP.

@sameersingh
Copy link
Contributor

ASTLogicSolver gives you the expression tree, you can create linear constraints from it as you like.

@guoquan
Copy link
Contributor Author

guoquan commented Aug 13, 2020

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?

@sameersingh
Copy link
Contributor

Let's talk about this next meeting. We talked about the logic expression being present, so converting should be easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants