Skip to content

Commit 385b872

Browse files
committed
Different print data because now the error has changed
1 parent 2ab4ee8 commit 385b872

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyomo/contrib/solver/solvers/ipopt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,6 @@ def _parse_ipopt_output(self, output: Union[str, io.StringIO]) -> Dict[str, Any]
621621
if isinstance(output, io.StringIO):
622622
output = output.getvalue()
623623

624-
print("************* Raw output:\n")
625-
print(output)
626-
627624
# Stop parsing if there is nothing to parse
628625
if not output:
629626
logger.log(
@@ -639,6 +636,7 @@ def _parse_ipopt_output(self, output: Union[str, io.StringIO]) -> Dict[str, Any]
639636
# Gather all the iteration data
640637
iter_table = re.findall(r'^(?:\s*\d+.*?)$', output, re.MULTILINE)
641638
if iter_table:
639+
print("********* Full iteration table:\n", iter_table)
642640
columns = [
643641
"iter",
644642
"objective",
@@ -657,6 +655,7 @@ def _parse_ipopt_output(self, output: Union[str, io.StringIO]) -> Dict[str, Any]
657655
n_expected_columns = len(columns)
658656

659657
for line in iter_table:
658+
print("********* Current line:\n", line)
660659
tokens = line.strip().split()
661660
# IPOPT sometimes mashes the first two column values together
662661
# (e.g., "2r-4.93e-03"). We need to split them.

0 commit comments

Comments
 (0)