<?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=TomSym_Industrial_Pollution_Control</id>
	<title>TomSym Industrial Pollution Control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://tomwiki.com/index.php?action=history&amp;feed=atom&amp;title=TomSym_Industrial_Pollution_Control"/>
	<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=TomSym_Industrial_Pollution_Control&amp;action=history"/>
	<updated>2026-10-31T23:19:48Z</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=TomSym_Industrial_Pollution_Control&amp;diff=2154&amp;oldid=prev</id>
		<title>Mbot at 13:34, 8 November 2011</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=TomSym_Industrial_Pollution_Control&amp;diff=2154&amp;oldid=prev"/>
		<updated>2011-11-08T13:34:09Z</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 09:34, 8 November 2011&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-l91&quot;&gt;Line 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&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;pre&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;pre&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;Problem type appears to be: con&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;Problem type appears to be: con&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;Time for symbolic processing: 0.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;083218 &lt;/del&gt;seconds&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;Time for symbolic processing: 0.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;085593 &lt;/ins&gt;seconds&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;Starting numeric solver&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;Starting numeric solver&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;===== * * * =================================================================== * * *&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot;&gt;Line 106:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 106:&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;FuncEv   47 GradEv   45 Iter   38 MinorIter  181&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;FuncEv   47 GradEv   45 Iter   38 MinorIter  181&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;CPU time: 0.015600 sec. Elapsed time: 0.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;019000 &lt;/del&gt;sec.  &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;CPU time: 0.015600 sec. Elapsed time: 0.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;020000 &lt;/ins&gt;sec.  &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;&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;/pre&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;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mbot</name></author>
	</entry>
	<entry>
		<id>http://tomwiki.com/index.php?title=TomSym_Industrial_Pollution_Control&amp;diff=1637&amp;oldid=prev</id>
		<title>Mbot: Created page with &quot;{{Part Of Manual|title=the TomSym Manual|link=TomSym Manual}}  TomSym implementation of GAMS Example (POLLUT,SEQ=96)  This is an example of planning production within ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://tomwiki.com/index.php?title=TomSym_Industrial_Pollution_Control&amp;diff=1637&amp;oldid=prev"/>
		<updated>2011-11-02T21:02:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Part Of Manual|title=the TomSym Manual|link=&lt;a href=&quot;/index.php?title=TomSym&quot; title=&quot;TomSym&quot;&gt;TomSym Manual&lt;/a&gt;}}  TomSym implementation of GAMS Example (POLLUT,SEQ=96)  This is an example of planning production within ...&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 TomSym Manual|link=[[TomSym|TomSym Manual]]}}&lt;br /&gt;
&lt;br /&gt;
TomSym implementation of GAMS Example (POLLUT,SEQ=96)&lt;br /&gt;
&lt;br /&gt;
This is an example of planning production within certain pollution standards.&lt;br /&gt;
&lt;br /&gt;
Mangasarian, O L, Nonlinear Programming. McGraw Hill, New York, 1973.&lt;br /&gt;
&lt;br /&gt;
j: (food, textile, apparel, lumber, furniture, pulp+paper     printing, chemicals, coal+petro, rubber, leather     clay+stone, steel, nf-metals, metals-pr, machinery     elec-mach, transport, prec-mach, misc)&lt;br /&gt;
&lt;br /&gt;
i:  pollutant (cod, so2, land, water)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
% Matrix w(j,i) unit load&lt;br /&gt;
w = [.08488  .00909  .02990  .07195;&lt;br /&gt;
    .03353  .02470  .08980  .17032;&lt;br /&gt;
    .03353  .02470  .02780  .01345;&lt;br /&gt;
    .00135  .00084  .06890  .01606;&lt;br /&gt;
    .00153  .00084  .03500  .01429;&lt;br /&gt;
    .23368  .07461  .04690  .15532;&lt;br /&gt;
    .07609  .05767  .01290  .01850;&lt;br /&gt;
    .07689  .05767  .05370  .09680;&lt;br /&gt;
    .03736  .01663  .27080  .02900;&lt;br /&gt;
    .02794  .00456  .06040  .09200;&lt;br /&gt;
    .02794  .00456  .04980  .07320;&lt;br /&gt;
    .00213  .08800  .11510  .09520;&lt;br /&gt;
    .00633  .02361  .08900  .07780;&lt;br /&gt;
    .00091  .03376  .02670  .03720;&lt;br /&gt;
    .00125  .00860  .06790  .04930;&lt;br /&gt;
    .00089  .00376  .06210  .02480;&lt;br /&gt;
    .00123  .00369  .02950  .02300;&lt;br /&gt;
    .00079  .00127  .07870  .04300;&lt;br /&gt;
    .00396  .00252  .03830  .03010;&lt;br /&gt;
    .00931  .00252  .04240  .03500];&lt;br /&gt;
&lt;br /&gt;
% Matrix z(j,*) other data&lt;br /&gt;
z =  [9.600   .121   .1064    29406   24709;&lt;br /&gt;
    6.353   .194   .1611    21375   18918;&lt;br /&gt;
    9.818   .204   .0848     8423   20636;&lt;br /&gt;
    7.371   .181   .1428    13873   10457;&lt;br /&gt;
    10.220   .171   .0955     8470    9739;&lt;br /&gt;
    6.255   .145   .1759    36375   18880;&lt;br /&gt;
    8.149   .304   .2190    66016   44480;&lt;br /&gt;
    7.794   .146   .1439    80134   36526;&lt;br /&gt;
    8.400   .173   .1314     1327     758;&lt;br /&gt;
    9.933   .174   .0987     4414    4921;&lt;br /&gt;
    11.069   .167   .0817     3709    6766;&lt;br /&gt;
    6.528   .192   .1665    14496    9368;&lt;br /&gt;
    7.928   .116   .1448   102399   31127;&lt;br /&gt;
    10.559   .091   .1026    28008    1166;&lt;br /&gt;
    6.606   .227   .1567    69314   59525;&lt;br /&gt;
    7.153   .208   .1506    90014   63048;&lt;br /&gt;
    11.146   .151   .0895    29360   29839;&lt;br /&gt;
    6.884   .199   .1602    27687   16945;&lt;br /&gt;
    6.660   .253   .1446     4009    4828;&lt;br /&gt;
    7.929   .182   .1256    24323   24569];&lt;br /&gt;
&lt;br /&gt;
% Scalars&lt;br /&gt;
a = .6;&lt;br /&gt;
b = 1.4;&lt;br /&gt;
gamma1 = 1.4;&lt;br /&gt;
gamma2 = 0.9;&lt;br /&gt;
&lt;br /&gt;
% Parameter tau(i)&lt;br /&gt;
tau = [.153e6 .12e6 .25e6 .25e6];&lt;br /&gt;
&lt;br /&gt;
% Variables (k = capital, l = labor)&lt;br /&gt;
k = tom(&amp;#039;k&amp;#039;,size(w,1),1);&lt;br /&gt;
l = tom(&amp;#039;l&amp;#039;,size(w,1),1);&lt;br /&gt;
&lt;br /&gt;
output =  sum(z(:,1).*k.^(1-z(:,2)).*l.^z(:,2));&lt;br /&gt;
&lt;br /&gt;
tk = sum(k);&lt;br /&gt;
tl = sum(l);&lt;br /&gt;
&lt;br /&gt;
constr = {&lt;br /&gt;
    sum(w.*repmat(k./z(:,3),1,size(w,2))) &amp;lt;= tau&lt;br /&gt;
    tk &amp;gt;= gamma2*tl&lt;br /&gt;
    tk &amp;lt;= gamma1*tl&lt;br /&gt;
    a*z(:,4) &amp;lt;= k &amp;lt;= b*z(:,4)&lt;br /&gt;
    a*z(:,5) &amp;lt;= l &amp;lt;= b*z(:,5)&lt;br /&gt;
    };&lt;br /&gt;
&lt;br /&gt;
guess = [];&lt;br /&gt;
&lt;br /&gt;
options = struct;&lt;br /&gt;
options.name = &amp;#039;pollution&amp;#039;;&lt;br /&gt;
solution = ezsolve(-output,constr,guess,options);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Problem type appears to be: con&lt;br /&gt;
Time for symbolic processing: 0.083218 seconds&lt;br /&gt;
Starting numeric solver&lt;br /&gt;
===== * * * =================================================================== * * *&lt;br /&gt;
TOMLAB - TOMLAB Development license  999007. Valid to 2011-12-31&lt;br /&gt;
=====================================================================================&lt;br /&gt;
Problem: ---  1: pollution                      f_k -5353268.628746992900000000&lt;br /&gt;
                                       sum(|constr|)      0.000000000000000233&lt;br /&gt;
                              f(x_k) + sum(|constr|)-5353268.628746992900000000&lt;br /&gt;
                                              f(x_0)-2887851.467224993300000000&lt;br /&gt;
&lt;br /&gt;
Solver: snopt.  EXIT=0.  INFORM=1.&lt;br /&gt;
SNOPT 7.2-5 NLP code&lt;br /&gt;
Optimality conditions satisfied&lt;br /&gt;
&lt;br /&gt;
FuncEv   47 GradEv   45 Iter   38 MinorIter  181&lt;br /&gt;
CPU time: 0.015600 sec. Elapsed time: 0.019000 sec. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mbot</name></author>
	</entry>
</feed>