Skip to content

Commit fe90a58

Browse files
committed
Switch from use of warning() to redirectable mp_warning().
1 parent 0ef594e commit fe90a58

5 files changed

Lines changed: 24 additions & 12 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ Change history for MIPS
55
since 1.5.2
66
-----------
77

8-
#### 7/23/26
9-
- Use `mp_printf()`, recently included in [MP-Test](4), in place of
10-
`fprintf()` everywhere to allow redirecting of console output.
8+
#### 8/4/26
9+
- Add support for redirecting console output via `mp.logger` by replacing
10+
`fprintf()` and `warning()` everywhere with `mp_printf()` and
11+
`mp_warning()`, respectively. Requires [MP-Test](4) 8.2 or later.
1112

1213

1314
Version 1.5.2 - *July 12, 2025*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ System Requirements
1212
-------------------
1313

1414
* [MATLAB][4] version 7 (R14) or later, or
15-
* [GNU Octave][5] version 3.4 or later
16-
* [MP-Test][6] version 7.1 or later
15+
* [GNU Octave][5] version 4.2 or later
16+
* [MP-Test][6] version 8.2 or later
1717

1818

1919
Installation

docs/src/MIPS-manual/MIPS-manual.tex

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
\newcommand{\mipsurl}[0]{https://github.com/MATPOWER/mips}
146146
\newcommand{\mipslink}[0]{\href{\mipsurl}{\mips{}}}
147147
\newcommand{\mipsname}[0]{{{\bf M}{\sc atpower} \textbf{I}nterior \textbf{P}oint \textbf{S}olver}}
148-
\newcommand{\mipsver}[0]{1.5.2}
148+
\newcommand{\mipsver}[0]{1.5.3-dev}
149149
\newcommand{\mpom}[0]{\mbox{MP-Opt-Model}}
150150
\newcommand{\mpomurl}[0]{https://github.com/MATPOWER/mp-opt-model}
151151
\newcommand{\mpomlink}[0]{\href{\mpomurl}{\mpom{}}}
@@ -228,7 +228,7 @@
228228
\title{\mipsname{}\\\mips{} \mipsver{}\\
229229
User's Manual}
230230
\author{Ray~D.~Zimmerman \and Hongye~Wang}
231-
\date{July 12, 2025} % comment this line to display the current date
231+
%\date{July 12, 2025} % comment this line to display the current date
232232
%\date{December 14, 2011\thanks{Second revision. First revision was December 13, 2011}} % comment this line to display the current date
233233

234234
%%% BEGIN DOCUMENT
@@ -366,8 +366,8 @@ \subsection{System Requirements}
366366
To use \mips{} \mipsver{} you will need:
367367
\begin{itemize}
368368
\item \matlab{}\textsuperscript{\tiny \textregistered} version 7 (R14) or later\footnote{\matlab{} is available from The MathWorks, Inc. (\url{https://www.mathworks.com/}). \matlab{} is a registered trademark of The MathWorks, Inc.}, or
369-
\item GNU Octave version 3.4 or later\footnote{GNU Octave \cite{octave} is free software, available online at \url{https://octave.org}. \mips{} \mipsver{} may work on earlier versions of Octave, but it has not been tested on versions prior to 3.4.}
370-
\item \mptestlink{} version 7.1 or later.\footnote{\mptest{} is available at \url{\mptesturl}.}
369+
\item GNU Octave version 4.2 or later\footnote{GNU Octave \cite{octave} is free software, available online at \url{https://octave.org}.}
370+
\item \mptestlink{} version 8.2 or later.\footnote{\mptest{} is available at \url{\mptesturl}.}
371371
\end{itemize}
372372

373373
For the hardware requirements, please refer to the system requirements for the version of \matlab{}\footnote{\url{https://www.mathworks.com/support/sysreq/previous_releases.html}} or Octave that you are using.
@@ -1359,6 +1359,17 @@ \subsubsection*{New Features}
13591359
\end{itemize}
13601360

13611361

1362+
\subsection{Version 1.5.3 -- released ??? ??, 202?}
1363+
\label{app:v153}
1364+
1365+
The \href{https://matpower.org/docs/MIPS-manual-1.5.3.pdf}{\mips{} 1.5.3 User's Manual} is available online.\footnote{\url{https://matpower.org/docs/MIPS-manual-1.5.3.pdf}}
1366+
1367+
\subsubsection*{New Features}
1368+
\begin{itemize}
1369+
\item Support for redirecting console output via \code{mp.logger} by replacing \code{fprintf()} and \code{warning()} everywhere with \code{mp\_printf()} and \code{mp\_warning()}, respectively. Requires \mptestlink{} 8.2 or later.
1370+
\end{itemize}
1371+
1372+
13621373

13631374
% \subsection{Version 1.6 -- released ??? ?, 2023}
13641375
% \label{app:v16}

lib/mipsver.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
% See https://github.com/MATPOWER/mips for more info.
2525

2626
v = struct( 'Name', 'MIPS', ...
27-
'Version', '1.5.2+', ...
27+
'Version', '1.5.3-dev', ...
2828
'Release', '', ...
29-
'Date', '23-Jul-2026' );
29+
'Date', '04-Aug-2026' );
3030
if nargout > 0
3131
if nargin > 0
3232
rv = v;

lib/mplinsolve.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
pardisofree(p);
324324
end
325325
otherwise
326-
warning('mplinsolve: ''%s'' is not a valid value for SOLVER, using default.', solver);
326+
mp_warning('mplinsolve: ''%s'' is not a valid value for SOLVER, using default.', solver);
327327
x = A \ b;
328328
end
329329
end

0 commit comments

Comments
 (0)