Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
46924fe
Alter logging levels for timing breakdown and solver options
shermanjasonaf Sep 7, 2025
371d36e
Merge branch 'main' into pyros-alter-logging-levels
shermanjasonaf Sep 7, 2025
cf1375d
Simplify setup of PyROS solver config
shermanjasonaf Sep 7, 2025
f879423
Add comment in user options logging method
shermanjasonaf Sep 7, 2025
95ed27f
Remove redundant code comment
shermanjasonaf Sep 7, 2025
c7c2c88
Address logging case of no user-specified options
shermanjasonaf Sep 7, 2025
2ed1463
Tweak argument setup for full solver config logging
shermanjasonaf Sep 7, 2025
683193d
Modify logging of backup solver invocation
shermanjasonaf Sep 8, 2025
c6a797b
Modify symbols used for logging backup solver use
shermanjasonaf Sep 9, 2025
7056a20
Track master feasibility solve success in iteration logs
shermanjasonaf Sep 9, 2025
28a5626
Modify PyROS logging disclaimer message
shermanjasonaf Sep 14, 2025
ce1e5de
Apply black
shermanjasonaf Sep 14, 2025
0f1f6ea
Check logger level before checking separation problem initial point
shermanjasonaf Sep 14, 2025
fdf8568
Log master feasibility and DR polishing failure msgs at DEBUG level
shermanjasonaf Sep 22, 2025
e8c4331
Update logging of PyROS input model statistics
shermanjasonaf Sep 23, 2025
6e2f19a
Update documentation of the PyROS logging system
shermanjasonaf Sep 23, 2025
0955998
Fix updated solver log example
shermanjasonaf Sep 23, 2025
a5d2624
Modify PyROS logging disclaimer in docs example
shermanjasonaf Sep 23, 2025
52ed442
Merge branch 'main' into pyros-alter-logging-levels
shermanjasonaf Sep 23, 2025
968f254
Fix typo in pyros docs
shermanjasonaf Sep 23, 2025
799564f
Add summary of successful separation results to DEBUG-level log
shermanjasonaf Sep 24, 2025
79a64d5
Tweak discrete separation progress logging
shermanjasonaf Sep 24, 2025
6754c35
Add worst-case realization to separation results summary log
shermanjasonaf Sep 24, 2025
9cf06e4
Fix typo logging violated constraints
shermanjasonaf Sep 24, 2025
cca2ef7
Merge branch 'main' into pyros-alter-logging-levels
shermanjasonaf Oct 3, 2025
dc2085f
Remove repeated 'four' in test comments
shermanjasonaf Oct 9, 2025
49782fd
Rewrite PyROS test method docstring
shermanjasonaf Oct 9, 2025
0359897
Add reference to issue #3721 in `user_values` logging comment
shermanjasonaf Oct 9, 2025
9e8bc0d
Remove repeated elements of DR polishing solver logging
shermanjasonaf Oct 9, 2025
cfb4965
Merge branch 'main' into pyros-alter-logging-levels
mrmundt Oct 14, 2025
20c2e0b
Simplify retrieval of config `user_values` post #3722
shermanjasonaf Oct 15, 2025
4e37ea1
Merge branch 'main' into pyros-alter-logging-levels
blnicho Oct 17, 2025
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
Prev Previous commit
Next Next commit
Modify symbols used for logging backup solver use
  • Loading branch information
shermanjasonaf committed Sep 9, 2025
commit c6a797b7bc5f17b81f0df1952ac208e81ebb16a8
6 changes: 3 additions & 3 deletions pyomo/contrib/pyros/tests/test_grcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@ def test_iter_log_record_master_backup(self):

# now check record logged as expected
ans = (
"4 1.2346e+00* 2.3457e-08 3.4568e-07 10 7.6543e-03 "
"4 1.2346e+00^ 2.3457e-08 3.4568e-07 10 7.6543e-03 "
"21.200 \n"
)
with LoggingIntercept(level=logging.INFO) as LOG:
Expand Down Expand Up @@ -3265,7 +3265,7 @@ def test_iter_log_record_separation_backup(self):
iter_record.log(logger.info)
result2 = LOG.getvalue()
self.assertEqual(
"4 1.2346e+00 2.3457e-08 3.4568e-07 10^* 7.6543e-03 "
"4 1.2346e+00 2.3457e-08 3.4568e-07 10^ 7.6543e-03 "
"21.200 \n",
result2,
msg="Iteration log record message does not match expected result",
Expand All @@ -3277,7 +3277,7 @@ def test_iter_log_record_separation_backup(self):
iter_record.log(logger.info)
result3 = LOG.getvalue()
self.assertEqual(
"4 1.2346e+00 2.3457e-08 3.4568e-07 10* 7.6543e-03 "
"4 1.2346e+00 2.3457e-08 3.4568e-07 10^ 7.6543e-03 "
"21.200 \n",
result3,
msg="Iteration log record message does not match expected result",
Expand Down
11 changes: 7 additions & 4 deletions pyomo/contrib/pyros/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3480,11 +3480,14 @@ def _format_record_attr(self, attr_name):
qual = "*" if not self.dr_polishing_success else ""
elif attr_name == "num_violated_cons":
all_solved_qual = "+" if not self.all_sep_problems_solved else ""
bkp_local_qual = "^" if self.separation_backup_local_solver else ""
bkp_global_qual = "*" if self.separation_backup_global_solver else ""
qual = all_solved_qual + bkp_local_qual + bkp_global_qual
bkp_qual = (
"^" if self.separation_backup_local_solver
or self.separation_backup_global_solver
else ""
)
qual = all_solved_qual + bkp_qual
elif attr_name == "objective":
qual = "*" if self.master_backup_solver else ""
qual = "^" if self.master_backup_solver else ""
elif attr_name == "max_violation":
qual = "g" if self.global_separation else ""
else:
Expand Down