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

Basis variables independence #34

Merged
merged 8 commits into from
May 15, 2018
Merged

Basis variables independence #34

merged 8 commits into from
May 15, 2018

Conversation

ShantanuThakoor
Copy link
Collaborator

ConstraintMatrixAnalyzer now keeps track of independent columns as we do GaussianElimination.

Use these columns to define initial set of basic variables.

Included regress test involving max and relu constraints together, for which this fix was needed.

@ShantanuThakoor ShantanuThakoor requested review from guykatzz and ibeling and removed request for ibeling May 9, 2018 01:18
@guykatzz
Copy link
Collaborator

guykatzz commented May 9, 2018

Hi Shantanu,
The change looks good. There was a failing unit test, which I fixed by adding mock infrastructure for ConstraintMatrixAnalyzer - so that we can test the engine in isolation.

A few more comments:

  1. Can you please add a unit test in Test_ConstraintMatrixAnalyzer for the new functionality?
  2. It looks to me like with this new addition, we don't really care about user-assigned auxiliary variables - we just grab variables as we like. So, I think we can remove that functionality altogether. Can you look into that? Several files will be affected, but it will mostly be deleting stuff.

@ShantanuThakoor
Copy link
Collaborator Author

I've written a simple test making sure that we are always selecting linearly independent columns as we do the Gaussian elimination.
I will remove the auxiliary variables in a separate PR as it is pretty messy.

@guykatzz guykatzz merged commit e6d4510 into NeuralNetworkVerification:master May 15, 2018
@ShantanuThakoor ShantanuThakoor deleted the basisVariablesIndependence branch May 15, 2018 06:48
matanost pushed a commit that referenced this pull request Nov 2, 2021
* Better choosing of basic variables

* Fixed max relu tests

* Simpler way to keep track of independent columns

* Fixed test asserting auxiliary vars are basic

* cosmetics

* added mock infrastructure for ConstraintMatrixAnalyzer in order to fix
the failing unit test

* Test that linearly independent rows of full-rank A matrix chosen as B0

* Add constraint analyzer factory to makefile in maraboupy
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

Successfully merging this pull request may close these issues.

3 participants