You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/MIPS-manual/MIPS-manual.tex
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -392,6 +392,7 @@ \subsection{Installation}
392
392
\begin{itemize}
393
393
\item\mipspath{/lib} -- core \mips{} functions
394
394
\item\mipspath{/lib/t} -- test scripts for \mips{}
395
+
\item\mipspath{/examples} -- \mips{} examples
395
396
\end{itemize}
396
397
\item At the \matlab{}/Octave prompt, type \code{test\_mips} to run the test suite and verify that \mips{} is properly installed and functioning.\footnote{The tests require a functioning installation of \mptestlink{}.} The result should resemble the following:
The following code, included as \code{mips\_example1.m} in \mipspath{lib/t}, shows a simple example of using \code{mips} to solve a 2-dimensional unconstrained optimization of Rosenbrock's ``banana'' function\footnote{\url{https://en.wikipedia.org/wiki/Rosenbrock_function}}
590
+
The following code, included as \code{mips\_example1.m} in \mipspath{examples}, shows a simple example of using \code{mips} to solve a 2-dimensional unconstrained optimization of Rosenbrock's ``banana'' function\footnote{\url{https://en.wikipedia.org/wiki/Rosenbrock_function}}
590
591
\begin{equation}
591
592
f(x) = 100 (x_2-x_1^2)^2+(1-x_1)^2.
592
593
\end{equation}
@@ -707,7 +708,7 @@ \subsection{Example 2}
707
708
0
708
709
0.707107
709
710
\end{Code}
710
-
This example can be found in \code{mips\_example2.m}. More example problems for \code{mips} can be found in \code{t\_mips.m}, both in \mipspath{lib/t}.
711
+
This example can be found in \code{mips\_example2.m} in \mipspath{examples}. More example problems for \code{mips} can be found in \code{t\_mips.m} in \mipspath{lib/t}.
711
712
712
713
\subsection{Primal-Dual Interior Point Algorithm}
713
714
@@ -1093,6 +1094,9 @@ \section{\mips{} Files and Functions}
1093
1094
\code{~~MIPS-manual.pdf} & \mipsman{} \\
1094
1095
\code{~~src/MIPS-manual/} & \\
1095
1096
\code{~~~~MIPS-manual.tex} & LaTeX source for \mips{} User's Manual \\
1097
+
\code{examples/} & \\
1098
+
\code{~~~~mips\_example1} & implements example 1 from \mips{} User's Manual \\
1099
+
\code{~~~~mips\_example2} & implements example 2 from \mips{} User's Manual \\
1096
1100
\code{lib/} & \\
1097
1101
\code{~~have\_feature\_lu\_vec}\tnote{*} & support for \code{lu(..., \textquotesingle{}vector\textquotesingle{})} syntax \\
1098
1102
\code{~~have\_feature\_pardiso\_legacy}\tnote{*} & \pardiso{} v5, individual MEX files for factor, solve, etc. \\
@@ -1103,8 +1107,6 @@ \section{\mips{} Files and Functions}
1103
1107
\code{~~mplinsolve} & common linear system solver interface, used by \mips{} \\
1104
1108
\code{~~qps\_mips} & common QP/LP solver interface to \mips{}-based solver \\
1105
1109
\code{~~t/} & \\
1106
-
\code{~~~~mips\_example1} & implements example 1 from \mips{} User's Manual \\
1107
-
\code{~~~~mips\_example2} & implements example 2 from \mips{} User's Manual \\
1108
1110
\code{~~~~test\_mips} & runs full \mips{} test suite \\
1109
1111
\code{~~~~t\_mips} & runs tests for \mips{} NLP solver \\
1110
1112
\code{~~~~t\_mips\_pardiso} & runs tests for \mips{} NLP solver, using PARDISO as linear solver\tnote{\dag} \\
0 commit comments