<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=Quickguide_L1_Problem</id>
	<title>Quickguide L1 Problem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=Quickguide_L1_Problem"/>
	<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Quickguide_L1_Problem&amp;action=history"/>
	<updated>2026-11-03T00:20:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://tomwiki.com/index.php?title=Quickguide_L1_Problem&amp;diff=2524&amp;oldid=prev</id>
		<title>Elias at 22:08, 17 January 2012</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Quickguide_L1_Problem&amp;diff=2524&amp;oldid=prev"/>
		<updated>2012-01-17T22:08:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:08, 17 January 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\begin{array}{cccccc}    \min\limits_x &amp;amp; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\multicolumn{5}{l}&lt;/del&gt;{\sum_i |r_i(x)|} \\    \mbox{subject to} &amp;amp; x_L &amp;amp; \leq &amp;amp;   x  &amp;amp; \leq &amp;amp; x_U \\    {}                &amp;amp; b_L &amp;amp; \leq &amp;amp;  Ax  &amp;amp; \leq &amp;amp; b_U \\    {}                &amp;amp; c_L &amp;amp; \leq &amp;amp; c(x) &amp;amp; \leq &amp;amp; c_U \\\end{array}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\begin{array}{cccccc}    \min\limits_x &amp;amp; {\sum_i |r_i(x)|} \\    \mbox{subject to} &amp;amp; x_L &amp;amp; \leq &amp;amp;   x  &amp;amp; \leq &amp;amp; x_U \\    {}                &amp;amp; b_L &amp;amp; \leq &amp;amp;  Ax  &amp;amp; \leq &amp;amp; b_U \\    {}                &amp;amp; c_L &amp;amp; \leq &amp;amp; c(x) &amp;amp; \leq &amp;amp; c_U \\\end{array}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Open the file for viewing, and execute L1QG in Matlab.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Open the file for viewing, and execute L1QG in Matlab.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/del&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/ins&gt;lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  % L1QG is a small example problem for defining and solving&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  % L1QG is a small example problem for defining and solving&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  % an L1 problem using the TOMLAB format.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  % an L1 problem using the TOMLAB format.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot;&gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Result  = tomRun(&amp;#039;L1Solve&amp;#039;, Prob, PriLev);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Result  = tomRun(&amp;#039;L1Solve&amp;#039;, Prob, PriLev);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
	<entry>
		<id>http://tomwiki.com/index.php?title=Quickguide_L1_Problem&amp;diff=855&amp;oldid=prev</id>
		<title>Elias: Created page with &quot;{{Part Of Manual|title=the Quickguide Manual|link=Quickguide}} The &#039;&#039;&#039;constrained L1&#039;&#039;&#039; (&#039;&#039;&#039;L1&#039;&#039;&#039;) problem is defined as   &lt;math&gt; \begin{array}{cccccc}    \min\lim...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=Quickguide_L1_Problem&amp;diff=855&amp;oldid=prev"/>
		<updated>2011-08-10T13:30:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Part Of Manual|title=the Quickguide Manual|link=&lt;a href=&quot;/index.php?title=Quickguide&quot; title=&quot;Quickguide&quot;&gt;Quickguide&lt;/a&gt;}} The &amp;#039;&amp;#039;&amp;#039;constrained L1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;L1&amp;#039;&amp;#039;&amp;#039;) problem is defined as   &amp;lt;math&amp;gt; \begin{array}{cccccc}    \min\lim...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Part Of Manual|title=the Quickguide Manual|link=[[Quickguide|Quickguide]]}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;constrained L1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;L1&amp;#039;&amp;#039;&amp;#039;) problem is defined as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{array}{cccccc}    \min\limits_x &amp;amp; \multicolumn{5}{l}{\sum_i |r_i(x)|} \\    \mbox{subject to} &amp;amp; x_L &amp;amp; \leq &amp;amp;   x  &amp;amp; \leq &amp;amp; x_U \\    {}                &amp;amp; b_L &amp;amp; \leq &amp;amp;  Ax  &amp;amp; \leq &amp;amp; b_U \\    {}                &amp;amp; c_L &amp;amp; \leq &amp;amp; c(x) &amp;amp; \leq &amp;amp; c_U \\\end{array}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;x,x_L,x_U \in R^n&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;r(x) \in R^N&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c(x),c_L,c_U&lt;br /&gt;
\in R^{m_1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b_L,b_U \in R^{m_2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;A\in R^{m_2&lt;br /&gt;
\times n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The L1 solution can be obtained by the use of any suitable nonlinear &amp;lt;span class=&amp;quot;roman&amp;quot;&amp;gt;TOMLAB&amp;lt;/span&amp;gt; solver.&lt;br /&gt;
&lt;br /&gt;
The following files define a problem in TOMLAB.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;File: &amp;#039;&amp;#039;&amp;#039;&amp;lt;span class=&amp;quot;roman&amp;quot;&amp;gt;tomlab/quickguide/L1QG_r.m, L1QG_J.m&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
r: Residual vector&lt;br /&gt;
J: Jacobian matrix&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following file illustrates how to solve an L1 problem in TOMLAB. Also view the m-files specified above for more information.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;File: &amp;#039;&amp;#039;&amp;#039;&amp;lt;span class=&amp;quot;roman&amp;quot;&amp;gt;tomlab/quickguide/L1QG.m&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open the file for viewing, and execute L1QG in Matlab.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
 % L1QG is a small example problem for defining and solving&lt;br /&gt;
 % an L1 problem using the TOMLAB format.&lt;br /&gt;
 &lt;br /&gt;
 Name = &amp;#039;Madsen-Tinglett 1&amp;#039;;&lt;br /&gt;
 x_0  = [1;1];        % Initial value&lt;br /&gt;
 x_L  = [-10;-10];    % Lower bounds on x&lt;br /&gt;
 x_U  = [10;10];      % Upper bounds on x&lt;br /&gt;
 &lt;br /&gt;
 % Solve the problem min max |r_i(x)|, where i = 1,2,3&lt;br /&gt;
 % Solve the problem by eliminating abs, doubling the residuals, reverse sign&lt;br /&gt;
 % i.e. min max [r_1; r_2; r_3; -r_1; -r_2; -r_3];&lt;br /&gt;
 y = [-1.5; -2.25; -2.625]; % The data values&lt;br /&gt;
 t = [];                 % No time vector used&lt;br /&gt;
 &lt;br /&gt;
 % Generate the problem structure using the Tomlab format&lt;br /&gt;
 % as a standard least squares problem.&lt;br /&gt;
 %&lt;br /&gt;
 % The part in the residuals dependent on x are defined in L1ex_r.m &lt;br /&gt;
 % The Jacobian is defined in L1ex_J.m&lt;br /&gt;
 &lt;br /&gt;
 Prob = clsAssign(&amp;#039;L1QG_r&amp;#039;, &amp;#039;L1QG_J&amp;#039;, [], x_L, x_U, Name, x_0, y, t);&lt;br /&gt;
 &lt;br /&gt;
 % Set JacPattern, L1Solve will compute correct ConsPattern&lt;br /&gt;
 Prob.JacPattern  = ones(length(y),2);&lt;br /&gt;
 &lt;br /&gt;
 % Set the optimal values into the structure (for nice result presenting)&lt;br /&gt;
 &lt;br /&gt;
 Prob.x_opt=[3, 0.5];&lt;br /&gt;
 Prob.f_opt=0;&lt;br /&gt;
 &lt;br /&gt;
 % Use the standard method in L1Solve&lt;br /&gt;
 Prob.L1Type = 1;&lt;br /&gt;
 &lt;br /&gt;
 % Get the default solver&lt;br /&gt;
 Solver = GetSolver(&amp;#039;con&amp;#039;,1,0);&lt;br /&gt;
 &lt;br /&gt;
 Prob.SolverL1 = Solver;&lt;br /&gt;
 &lt;br /&gt;
 % One may set the solver directly:&lt;br /&gt;
 %Prob.SolverL1 = &amp;#039;snopt&amp;#039;;&lt;br /&gt;
 %Prob.SolverL1 = &amp;#039;npsol&amp;#039;;&lt;br /&gt;
 %Prob.SolverL1 = &amp;#039;minos&amp;#039;;&lt;br /&gt;
 %Prob.SolverL1 = &amp;#039;conSolve&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
 % These statements generate ASCII log files when running SNOPT&lt;br /&gt;
 if strcmpi(Solver,&amp;#039;snopt&amp;#039;) &lt;br /&gt;
    Prob.SOL.PrintFile = &amp;#039;snopt.txt&amp;#039;;&lt;br /&gt;
    Prob.SOL.SummFile  = &amp;#039;snopts.txt&amp;#039;;&lt;br /&gt;
    Prob.SOL.optPar(1) = 10;   % Print level in SNOPT&lt;br /&gt;
    %Prob.SOL.optPar(13) = 3;   % Verify level in SNOPT&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 % Set print level 2 to get output from PrintResult at the end&lt;br /&gt;
 PriLev = 2;&lt;br /&gt;
 Prob.PriLevOpt = 0;&lt;br /&gt;
 &lt;br /&gt;
 Result  = tomRun(&amp;#039;L1Solve&amp;#039;, Prob, PriLev);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Elias</name></author>
	</entry>
</feed>