Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7eb0cbe
Add time limit warning to global solver
stephenscini Jul 2, 2026
0f97cb0
Ran black
stephenscini Jul 8, 2026
352c828
Adjusted order to solve unbounded nlp at end of method
stephenscini Jul 8, 2026
8c0a358
Made naming consistent, commented out pwl while debugging tests
stephenscini Jul 8, 2026
b6947a0
Fixed test, ran black
stephenscini Jul 8, 2026
3cb1585
Forgot comment, ran black
stephenscini Jul 8, 2026
cc40909
Initial setup progress for multistart initialization
stephenscini Jul 8, 2026
4e46f90
Work on lhs, in progress
stephenscini Jul 8, 2026
fb66e6c
Semi working version of multistart!
stephenscini Jul 8, 2026
86cbd73
Changes to resolve testing errors, in progress
stephenscini Jul 9, 2026
2f17c59
Added more loggers to debug stuff
stephenscini Jul 9, 2026
65f7398
Fix typo
stephenscini Jul 9, 2026
55a1e88
Solution loading too strict
stephenscini Jul 9, 2026
c86cbc0
Caused other issues, putting this back
stephenscini Jul 9, 2026
6aa9ce0
define helper fcn to retry solve, removed from finally block
stephenscini Jul 9, 2026
3753f4b
Ran black
stephenscini Jul 9, 2026
9dd6c48
Moved string, Ran black
stephenscini Jul 9, 2026
691b3cd
Merge branch 'initialization-devel' into multistart-init
stephenscini Jul 9, 2026
2870aff
Made multistart also use nlp solve
stephenscini Jul 9, 2026
e84f9fb
Adding new features for initialization, in progress
stephenscini Jul 13, 2026
64ea87a
First draft of additional sampling support and break_on_solution
stephenscini Jul 13, 2026
4424e25
Ran black
stephenscini Jul 13, 2026
ead5c80
Trying to support old and new solver interfaces, in progress.
stephenscini Jul 13, 2026
1561d17
Ran black
stephenscini Jul 13, 2026
207bd13
Ran black on devel/initialization
stephenscini Jul 13, 2026
9e734b1
Switching over to new solver factory interface, ran black
stephenscini Jul 20, 2026
331d8c8
Added new initialize bool. Ran black
stephenscini Jul 20, 2026
e9fa46e
Merge branch 'main' into multistart-init
stephenscini Jul 20, 2026
99d738a
Fixed SolverFactory issue
stephenscini Jul 21, 2026
db10cfb
Added vectorized strategy, adjusted defaults, ran black.
stephenscini Jul 21, 2026
93e1e7e
Changed configs
stephenscini Jul 21, 2026
e4f564c
Updated solverwrapper to meet new requirements, ran black
stephenscini Jul 23, 2026
4a80136
Add back suppression warning
stephenscini Jul 23, 2026
99a51f1
Ran black in devel
stephenscini Jul 23, 2026
003801f
Added multistart to solver list in contrib.solvers
stephenscini Jul 23, 2026
c5e2109
Ran black
stephenscini Jul 23, 2026
281ff01
Finished example, ran black
stephenscini Jul 23, 2026
127a973
Used utility to get vars from shallow clone
stephenscini Jul 27, 2026
e087e99
Remove extra print statements
stephenscini Jul 27, 2026
78f0869
Modify config
stephenscini Jul 27, 2026
45dd8c5
Ran black
stephenscini Jul 27, 2026
d58d937
Added break on solution
stephenscini Jul 27, 2026
b7262fb
Fixing equal bound variables
stephenscini Jul 27, 2026
aa9ba5b
Starting to fix issues with test_solvers
stephenscini Jul 28, 2026
a312c49
Ran black
stephenscini Jul 28, 2026
836fa9c
Mod test for new expected error
stephenscini Jul 29, 2026
0c805cd
Work progress on testing for all solvers
stephenscini Jul 30, 2026
746b996
Swapping to new design with custom results
stephenscini Aug 4, 2026
d5c517d
Progress on multistart redesign
stephenscini Aug 5, 2026
bcfbc05
All test_solver tests passing!
stephenscini Aug 5, 2026
1a5c276
All og multistart tests also pass!
stephenscini Aug 5, 2026
2ace3ce
Add support for all sampling methods in all strategies
stephenscini Aug 5, 2026
961580f
Update init example
stephenscini Aug 5, 2026
01bd9e0
Removing gams from list to see if other checks pass
stephenscini Aug 5, 2026
00c827f
Add back gams, misunderstood
stephenscini Aug 5, 2026
34504f7
Add multistart init ex to testing
stephenscini Aug 6, 2026
fa26f40
Add default False for solution loading, ran black
stephenscini Aug 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pyomo/contrib/multistart/high_conf_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from collections import Counter
from math import log, sqrt
import logging


def num_one_occurrences(observed_obj_vals, tolerance):
Expand Down Expand Up @@ -59,4 +60,7 @@ def should_stop(solutions, stopping_mass, stopping_delta, tolerance):
d = stopping_delta
c = stopping_mass
confidence = f / n + (2 * sqrt(2) + sqrt(3)) * sqrt(log(3 / d) / n)
# Add temporary logger
logging.info(f"Number of solutions [n]:{n}; Optima viewed once [f]:{f}; \
Confidence:{confidence}")
return confidence < c
Loading
Loading