Skip to content

docs: improve documentation for mutable vs immutable Params#3890

Open
DLWoodruff wants to merge 5 commits intoPyomo:mainfrom
DLWoodruff:doc-mutable-params
Open

docs: improve documentation for mutable vs immutable Params#3890
DLWoodruff wants to merge 5 commits intoPyomo:mainfrom
DLWoodruff:doc-mutable-params

Conversation

@DLWoodruff
Copy link
Copy Markdown
Contributor

@DLWoodruff DLWoodruff commented Mar 26, 2026

Added sections for Performance vs. Flexibility, When to use Mutable, Comparison Table (Param vs. Var), and clearer information on updating parameters with set_value().

Fixes # .

Summary/Motivation:

According to a web search, mutable vs. immutable issues are in the top ten troubles for new users (most of the others have something to do with solver status one way or the other)

Changes proposed in this PR:

  • An attempt (with the help of Gemini) to create better documentation for Params

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.

@DLWoodruff DLWoodruff marked this pull request as ready for review March 26, 2026 00:33
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.93%. Comparing base (e5df38e) to head (0e3aa19).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3890   +/-   ##
=======================================
  Coverage   89.93%   89.93%           
=======================================
  Files         902      902           
  Lines      106415   106415           
=======================================
+ Hits        95701    95702    +1     
+ Misses      10714    10713    -1     
Flag Coverage Δ
builders 29.18% <ø> (-0.01%) ⬇️
default 86.23% <ø> (?)
expensive 35.63% <ø> (?)
linux 87.38% <ø> (-2.04%) ⬇️
linux_other 87.38% <ø> (ø)
oldsolvers 28.10% <ø> (+<0.01%) ⬆️
osx 82.71% <ø> (ø)
win 85.60% <ø> (-0.20%) ⬇️
win_other 85.60% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Added sections for Performance vs. Flexibility, When to use Mutable, Comparison Table (Param vs. Var), and clearer information on updating parameters with set_value().
Copy link
Copy Markdown
Member

@jsiirola jsiirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. I have a couple questions, but nothing that would/should block merging.

…able-params

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@DLWoodruff DLWoodruff requested a review from jsiirola April 11, 2026 18:22
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.

3 participants