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

Should a negative cost ever occur? #31

Open
pwintz opened this issue Apr 11, 2024 · 1 comment
Open

Should a negative cost ever occur? #31

pwintz opened this issue Apr 11, 2024 · 1 comment

Comments

@pwintz
Copy link

pwintz commented Apr 11, 2024

I'm running into a surprising case where the cost is sometimes evaluated to be negative if the optimization algorithm fails to converge to a solution. Is this expected?

[MPC++] Optimization step completed
duration: 340.145 (sec)
status: 1 (opt code: -2)
cost: -1500.16
Scarab: inject roi stats dump end marker
Optimizer Info
         Return code: -2
       Result status: 1
Number of iterations: 800
                Cost: -1500.16
    Constraint error: 0.445752
          Dual error: 0.140763
@nicolapiccinelli
Copy link
Owner

Hey @pwintz can you provide some context? Kind of problem you are solving, parameters, etc.

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

No branches or pull requests

2 participants