-
Notifications
You must be signed in to change notification settings - Fork 4
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
Optimisation functions #8
Comments
Great! I took a brief look at the code and may have missed something: It seems if On Sat, May 9, 2015 at 5:23 PM, Zenna Tavares [email protected]
|
No if the half interval is unsat I set the other half interval (which I
|
Ok right. I guess I was looking at the line outside the loop where it does On Sun, May 10, 2015 at 2:45 AM, Zenna Tavares [email protected]
|
By get the right answer you mean get SAT? I don't think so. In either case For example if the minimum is zero but your original interval is -10 to 0 Currently the default value is to stop after 10 itrrations but the stop On 10 May 2015 10:33, "Sicun Gao" [email protected] wrote:
|
If you exit only when the interval is smaller than epsilon, you do always get the epsilon-optimal value. If the first check before the loop says there's a solution, then in the last round, you can always return the upper half of the epsilon interval as the answer, regardless of whether you get sat or unsat. The idea is you'll keep throwing away the lower half, and when it's epsilon small you are epsilon-close to the minimum. Take your -10 to 0 example, you'll end up with [-epsilon, -0.5*epsilon] even though it's unsat you are very close to the right value. We can talk tmr about this.
|
@scungao and @soonhokong . I added a function for binary-search based optimisation in dReal(in dReal.jl/src/optimize.jl and there are examples in /test). If you would like any enhancements or changes, we can discuss them here.
The text was updated successfully, but these errors were encountered: