-
Notifications
You must be signed in to change notification settings - Fork 598
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
auglag divide by zero #235
Comments
please provide a simple test-case |
I've attached a modified version of the tutorial that reproduces the divide by zero. |
you start from 0, with sqrt ... closing |
My apologize I put together the example in haste and didn't notice I had the 1/0 in there. I've updated the the example tutorial.txt. I modified the objective function to remove the 1/0 and provide two initial guesses. One initial guess where the constraint is satisfied and one initial guess where the constraint is violated. I also enabled floating point trapping. Running the example with gdb to catch the floating point exeption I get:
Using the initial guess that violates the constraint works just fine because con2 > |
On line 177 of auglag.c there is:
However, if there are only inequality constraints and they are all satisfied then con2 == 0. Something like
would be a simple fix, but I'm just guessing.
The text was updated successfully, but these errors were encountered: