-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add simulation for preprocess. #439
Add simulation for preprocess. #439
Conversation
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
src/nlr/LayerOwner.h
Outdated
@@ -32,6 +35,7 @@ class LayerOwner | |||
virtual const ITableau *getTableau() const = 0; | |||
virtual unsigned getNumberOfLayers() const = 0; | |||
virtual void receiveTighterBound( Tightening tightening ) = 0; | |||
virtual void simulate( Vector<Vector<double>> *input ) = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since simulate() is now called only in Engine.cpp, which stores nlr as a NetworkLevelReasoner instead of a LayerOwner, we probably don't need to add this method in the LayerOwner class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
src/nlr/LayerOwner.h
Outdated
@@ -17,6 +17,9 @@ | |||
#define __LayerOwner_h__ | |||
|
|||
#include "Tightening.h" | |||
#include "Vector.h" | |||
|
|||
// #include <vector> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
src/configuration/Options.cpp
Outdated
@@ -58,6 +58,7 @@ void Options::initializeDefaultValues() | |||
_intOptions[VERBOSITY] = 2; | |||
_intOptions[TIMEOUT] = 0; | |||
_intOptions[CONSTRAINT_VIOLATION_THRESHOLD] = 20; | |||
_intOptions[NUMBER_OF_SIMULATIONS] = 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe set this to 1 for now? We can submit another PR after evaluating what is the best number of simulations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
* Add simulation for preprocess Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * fix compile error Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * small change Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * small change 2 Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * change ci Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * std::vector to Vector, and etc Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * change log Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * Fix system test apart from AbsoluteValue Signed-off-by: tagomaru <tagomaru@users.noreply.github.com> * fix minor issues Signed-off-by: tagomaru <tagomaru@users.noreply.github.com>
This PR is going to add simulation function to enhance preprocess.