-
Notifications
You must be signed in to change notification settings - Fork 49
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
Adding new variables dynamically #10
Comments
Hi Ranadeep,
I'm afraid I didn't understand the question. Currently the number of
variables is indeed fixed during initialization. You could extend the code
to support dynamic addition of new variables.
Regards,
Guy
…On Thu, 21 Mar 2019 at 15:31, Ranadeep Biswas ***@***.***> wrote:
Currently, when initializing Reluplex, we need to pass the number of
variables we are gonna use. The point is, it uses dynamic array to
initialize the variables which can not be resized.
https://github.com/guykatzz/ReluplexCav2017/blob/e2e48b2980f76bdff74787427f43fff3b26a45a4/reluplex/Reluplex.h#L189-L195
Does std::vector really affect Reluplex's performance?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AOU33dtGYbmGyi9tkph55vnP4Diqkolaks5vY4mYgaJpZM4cBb0J>
.
|
I am sorry if I was not clear. This is not particularly an issue - more like a feature request. I want to add new variables as I go. I am willing to extend it with
|
It is generally possible, and resizing the arrays should not cripple performance any more than if those variables had been there to begin with (in general, additional variables lead to slower performance). However, correctly adding more variables on the fly would require a certain understanding of how Reluplex works, as you would need to adjust a bunch of data structures correctly. In particular, it will be important whether you were adding new equations or just new variables, whether the new variables participate in ReLU constraints, and whether there is already stored information about the execution that would need to be updated in addition to the current state. You are welcome to email me directly and explain your needs, and maybe we can find a solution. |
Currently, when initializing
Reluplex
, we need to pass the number of variables we are gonna use. The point is, it uses dynamic array to initialize the variables which can not be resized.ReluplexCav2017/reluplex/Reluplex.h
Lines 189 to 195 in e2e48b2
Does
std::vector
really affect Reluplex's performance?The text was updated successfully, but these errors were encountered: