Skip to content

Support Param.pprint() for non-finite Params#3387

Merged
blnicho merged 2 commits intoPyomo:mainfrom
jsiirola:pprint-nonfinite-param
Oct 21, 2024
Merged

Support Param.pprint() for non-finite Params#3387
blnicho merged 2 commits intoPyomo:mainfrom
jsiirola:pprint-nonfinite-param

Conversation

@jsiirola
Copy link
Copy Markdown
Member

Fixes #3379 .

Summary/Motivation:

This resolves an error where non-finite Params were not pretty-printable (because the Param had no len()).

Changes proposed in this PR:

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.

@blnicho blnicho merged commit cc1b175 into Pyomo:main Oct 21, 2024
@jsiirola jsiirola deleted the pprint-nonfinite-param branch November 15, 2024 03:24
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.

Params indexed by infinite sets with default value cannot be pretty-printed

2 participants