Skip to content

[Depends on #3821 and #3744] Initialization Module#3912

Open
michaelbynum wants to merge 221 commits intoPyomo:mainfrom
michaelbynum:initialization
Open

[Depends on #3821 and #3744] Initialization Module#3912
michaelbynum wants to merge 221 commits intoPyomo:mainfrom
michaelbynum:initialization

Conversation

@michaelbynum
Copy link
Copy Markdown
Contributor

Summary/Motivation:

This PR adds a module to devel called initialization. The goal of the module is to provide methods to help initialize nonconvex nonlinear programming problems.

Changes proposed in this PR:

  • Add initialization module
  • Add an initialization method that uses a global optimization solver to find a feasible solution
  • Add an initialization method that builds a linear programming approximation using linear least squares
  • Add an initialization method that builds a piecewise linear approximation and iteratively refines it

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.

Opt-Mucca and others added 30 commits March 18, 2024 15:14
Co-authored-by: Miranda Mundt <55767766+mrmundt@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 64.00911% with 632 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.07%. Comparing base (43a6446) to head (2030f4e).

Files with missing lines Patch % Lines
pyomo/contrib/solver/solvers/scip/scip_direct.py 29.87% 493 Missing ⚠️
pyomo/devel/initialization/pwl_init.py 87.26% 27 Missing ⚠️
pyomo/contrib/piecewise/transform/factorable.py 92.56% 24 Missing ⚠️
pyomo/devel/initialization/initialize.py 72.13% 17 Missing ⚠️
pyomo/contrib/solver/common/solution_loader.py 78.08% 16 Missing ⚠️
...ontrib/solver/solvers/gurobi/gurobi_direct_base.py 65.78% 13 Missing ⚠️
...evel/initialization/examples/init_polynomial_ex.py 31.57% 13 Missing ⚠️
pyomo/devel/initialization/global_init.py 52.38% 10 Missing ⚠️
pyomo/devel/initialization/lp_approx_init.py 95.96% 5 Missing ⚠️
...omo/devel/initialization/bounds/bound_variables.py 73.33% 4 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3912      +/-   ##
==========================================
- Coverage   89.94%   88.07%   -1.87%     
==========================================
  Files         902      912      +10     
  Lines      106457   108146    +1689     
==========================================
- Hits        95748    95245     -503     
- Misses      10709    12901    +2192     
Flag Coverage Δ
builders 29.11% <25.56%> (-0.07%) ⬇️
default 85.87% <63.83%> (?)
expensive 35.46% <25.56%> (?)
linux 34.55% <26.13%> (-54.88%) ⬇️
linux_other 34.55% <26.13%> (-52.85%) ⬇️
oldsolvers 28.06% <25.56%> (-0.06%) ⬇️
osx ?
win ?
win_other ?

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.

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.

5 participants