Skip to content

Conversation

@eminyouskn
Copy link
Contributor

Fixes

KnitroDirectSolver is not affected by tee=True or tee=False in the solve method.

Summary/Motivation:

Changes proposed in this PR:

  • Capture the output of the KNITRO.

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@eminyouskn
Copy link
Contributor Author

@mrmundt I use redirect_stdout to redirect the output. Is it correct or there is a specific way in pyomo to do what redirect_stdout does?

@eminyouskn eminyouskn changed the title Fix KNITRO tee [Depends on #3762] Fix KNITRO tee Oct 21, 2025
@eminyouskn
Copy link
Contributor Author

This PR is also ready. I made dependant on #3762 to avoid merge conflicts.

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

Successfully merging this pull request may close these issues.

4 participants