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

Infinite loop with SQPOptimizerGM #313

Open
Serrof opened this issue Feb 27, 2024 · 1 comment
Open

Infinite loop with SQPOptimizerGM #313

Serrof opened this issue Feb 27, 2024 · 1 comment
Labels

Comments

@Serrof
Copy link
Contributor

Serrof commented Feb 27, 2024

Solver can get stuck. This is due to rhoSegnato being Infinite, leading rho to be NaN and the while line 163 to loop infinitely.

Code sample to reproduce:

        final QuadraticFunction q = new QuadraticFunction(new double[][] { { 1.0, 0.0 }, { 0.0, 1.0 } },
                new double[] { 1.0, 0.0 },
                0.0);

        final LinearEqualityConstraint eqc = new LinearEqualityConstraint(new double[][] { { 1.0, 0.0 } },
                new double[] { 0.0 });

        final ConstraintOptimizer optimizer = buildOptimizer();
        final OptimizationData[] data = new OptimizationData[] { new ObjectiveFunction(q), eqc };
        final LagrangeSolution    solution  = optimizer.optimize(data);
@Serrof Serrof added the optim label Feb 27, 2024
@roccafrancesco
Copy link

Could you try to change the EPS of SQPOption putting the same value of ADMMOption?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants