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

Improve printing of optimization and solution objects #244

Open
ewu63 opened this issue Apr 29, 2021 · 1 comment
Open

Improve printing of optimization and solution objects #244

ewu63 opened this issue Apr 29, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ewu63
Copy link
Collaborator

ewu63 commented Apr 29, 2021

Description

The current str() implementation can be improved:

  • objective value should not be initialized to zero. Instead should be None and a placeholder text should be shown
  • same for constraint values
  • same with Lagrange multipliers
  • optProb variable values are wrong after optimization
    • also check that the initial values are correct
  • should have a description of what status is expected to show
@ewu63 ewu63 added the bug Something isn't working label Apr 29, 2021
@marcomangano
Copy link
Contributor

Related to this issue, see #255 . I think we need to refactor the way the Optimization instance is updated so that when printing the solution at the end, functions and variables are consistent.

This should be an alternative to check History.getValues(callCounters='last') when e.g. history is not turned on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants