<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mintoc.de/index.php?action=history&amp;feed=atom&amp;title=Lotka_Experimental_Design_%28AMPL%29</id>
	<title>Lotka Experimental Design (AMPL) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mintoc.de/index.php?action=history&amp;feed=atom&amp;title=Lotka_Experimental_Design_%28AMPL%29"/>
	<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;action=history"/>
	<updated>2026-06-09T09:16:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=710&amp;oldid=prev</id>
		<title>SebastianSager: corrected Fisher information matrix</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=710&amp;oldid=prev"/>
		<updated>2012-10-18T16:18:22Z</updated>

		<summary type="html">&lt;p&gt;corrected Fisher information matrix&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 16:18, 18 October 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-l92&quot;&gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&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;### Fisher information matrix  &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;### Fisher information matrix  &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;# F1: w1 * G11*G11 + w2 * &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12&lt;/del&gt;*&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12&lt;/del&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;# F1: w1 * G11*G11 + w2 * &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21&lt;/ins&gt;*&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21&lt;/ins&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;subject to dynamicF1{i in 1..nt}:&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;subject to dynamicF1{i in 1..nt}:&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;	F[1,i] = F[1,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[1,1,i] + w[2,uidx[i-1]] * G[1&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,2&lt;/del&gt;,i] * G[1&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,2&lt;/del&gt;,i]);&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;	F[1,i] = F[1,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[1,1,i] + w[2,uidx[i-1]] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2,&lt;/ins&gt;1,i] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2,&lt;/ins&gt;1,i]);&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;# F2: w1 * G11*&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21 &lt;/del&gt;+ w2 * &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12&lt;/del&gt;*G22&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;# F2: w1 * G11*&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12 &lt;/ins&gt;+ w2 * &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21&lt;/ins&gt;*G22&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;subject to dynamicF2{i in 1..nt}:&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;subject to dynamicF2{i in 1..nt}:&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;	F[2,i] = F[2,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,1&lt;/del&gt;,i] + w[2,uidx[i-1]] * G[1&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,2&lt;/del&gt;,i] * G[2,2,i]);&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;	F[2,i] = F[2,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1,&lt;/ins&gt;2,i] + w[2,uidx[i-1]] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2,&lt;/ins&gt;1,i] * G[2,2,i]);&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;# F3: w1 * &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21&lt;/del&gt;*&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G21 &lt;/del&gt;+ w2 * G22*G22&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;# F3: w1 * &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12&lt;/ins&gt;*&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;G12 &lt;/ins&gt;+ w2 * G22*G22&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;subject to dynamicF3{i in 1..nt}:&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;subject to dynamicF3{i in 1..nt}:&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;	F[3,i] = F[3,i-1] + h * ( w[1,uidx[i-1]] * G[2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,1&lt;/del&gt;,i] * G[2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,1&lt;/del&gt;,i] + w[2,uidx[i-1]] * G[2,2,i] * G[2,2,i]);&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;	F[3,i] = F[3,i-1] + h * ( w[1,uidx[i-1]] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1,&lt;/ins&gt;2,i] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1,&lt;/ins&gt;2,i] + w[2,uidx[i-1]] * G[2,2,i] * G[2,2,i]);&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;### Summing up measurements&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;### Summing up measurements&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=709&amp;oldid=prev</id>
		<title>SebastianSager: two typos, thanks to Henry Kar Ming Chan for pointing this out</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=709&amp;oldid=prev"/>
		<updated>2012-10-03T07:25:35Z</updated>

		<summary type="html">&lt;p&gt;two typos, thanks to Henry Kar Ming Chan for pointing this out&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 07:25, 3 October 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-l94&quot;&gt;Line 94:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&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;# F1: w1 * G11*G11 + w2 * G12*G12&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;# F1: w1 * G11*G11 + w2 * G12*G12&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;subject to dynamicF1{i in 1..nt}:&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;subject to dynamicF1{i in 1..nt}:&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;	F[1,i] = F[1,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[1,1,i] + w[2,uidx[i-1]] * G[1,2,i] * G[2&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,1&lt;/del&gt;,i]);&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;	F[1,i] = F[1,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[1,1,i] + w[2,uidx[i-1]] * G[1,2,i] * G[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1,&lt;/ins&gt;2,i]);&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;# F2: w1 * G11*G21 + w2 * G12*G22&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;# F2: w1 * G11*G21 + w2 * G12*G22&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;subject to dynamicF2{i in 1..nt}:&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;subject to dynamicF2{i in 1..nt}:&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;	F[2,i] = F[2,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[2,1,i] + w[2,uidx[i]] * G[1,2,i] * G[2,2,i]);&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;	F[2,i] = F[2,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[2,1,i] + w[2,uidx[i&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-1&lt;/ins&gt;]] * G[1,2,i] * G[2,2,i]);&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;# F3: w1 * G21*G21 + w2 * G22*G22&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;# F3: w1 * G21*G21 + w2 * G22*G22&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=706&amp;oldid=prev</id>
		<title>SebastianSager: Initial setup of AMPL files</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Lotka_Experimental_Design_(AMPL)&amp;diff=706&amp;oldid=prev"/>
		<updated>2012-08-31T09:14:35Z</updated>

		<summary type="html">&lt;p&gt;Initial setup of AMPL files&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page contains a discretized version of the MIOCP [[Lotka Experimental Design]] in [http://www.ampl.org AMPL] format. You should be aware of the comments regarding discretization made on the [[:Category:AMPL|AMPL overview]] page.&lt;br /&gt;
&lt;br /&gt;
=== AMPL ===&lt;br /&gt;
&lt;br /&gt;
The model in AMPL code for a fixed control discretization grid with a collocation method, using an implicit Euler. We need a model file vplotka.mod,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;AMPL&amp;quot;&amp;gt;&lt;br /&gt;
# ----------------------------------------------------------------&lt;br /&gt;
# Lotka Experimental Design problem with collocation (implicit Euler)&lt;br /&gt;
# (c) Sebastian Sager&lt;br /&gt;
# ----------------------------------------------------------------&lt;br /&gt;
param nt &amp;gt; 0 integer;&lt;br /&gt;
param nu &amp;gt; 0 integer;&lt;br /&gt;
param ntperu &amp;gt; 0 integer;&lt;br /&gt;
param nx &amp;gt; 0 integer;&lt;br /&gt;
param np &amp;gt; 0 integer;&lt;br /&gt;
param npar &amp;gt; 0 integer;&lt;br /&gt;
param nF &amp;gt; 0 integer;&lt;br /&gt;
&lt;br /&gt;
param tf &amp;gt; 0;&lt;br /&gt;
param h;&lt;br /&gt;
param initialization;&lt;br /&gt;
&lt;br /&gt;
set I:= 0..nt;&lt;br /&gt;
set U:= 0..nu-1;&lt;br /&gt;
param uidx {I};&lt;br /&gt;
&lt;br /&gt;
param p{1..np};&lt;br /&gt;
param M;&lt;br /&gt;
&lt;br /&gt;
param x0{1..nx};&lt;br /&gt;
param G0{1..nx,1..npar};&lt;br /&gt;
param F0{1..nF};&lt;br /&gt;
&lt;br /&gt;
var x{1..nx,0..nt};&lt;br /&gt;
var G{1..nx,1..npar,0..nt};&lt;br /&gt;
var F{1..nF,0..nt};&lt;br /&gt;
var w{1..nx,0..nu-1} &amp;gt;= 0, &amp;lt;= 1;&lt;br /&gt;
var u{0..nu-1} &amp;gt;= 0, &amp;lt;= 1;&lt;br /&gt;
&lt;br /&gt;
### Calculate trace of 2x2 inverse matrix by hand and add penalization&lt;br /&gt;
minimize covariance: (F[1,nt] + F[3,nt]) / ( F[1,nt]*F[3,nt] - F[2,nt]*F[2,nt])&lt;br /&gt;
 + p[9] * 0.5 * h * ntperu * &lt;br /&gt;
   (   w[1,0] + w[2,0] + w[1,nu-1] + w[2,nu-1]&lt;br /&gt;
     + 2 * sum {i in U diff {0,nu-1} } ( w[1,i] + w[2,i] )&lt;br /&gt;
   );&lt;br /&gt;
	&lt;br /&gt;
### Predator prey dynamics&lt;br /&gt;
subject to dynamicX1{i in 1..nt}:&lt;br /&gt;
	x[1,i] = x[1,i-1] + h * ( p[1]*x[1,i] - p[2]*x[1,i]*x[2,i] - p[5]*x[1,i]*u[uidx[i-1]] );&lt;br /&gt;
&lt;br /&gt;
subject to dynamicX2{i in 1..nt}:&lt;br /&gt;
	x[2,i] = x[2,i-1] + h * ( -p[3]*x[2,i] + p[4]*x[1,i]*x[2,i] - p[6]*x[2,i]*u[uidx[i-1]] );&lt;br /&gt;
	&lt;br /&gt;
### Variational differential equations&lt;br /&gt;
### Calculated by hand for par = (p2, p4)&lt;br /&gt;
# fx11 = p[1] - p[2]*x[2,i-1] - p[5]*u[uidx[i-1]]&lt;br /&gt;
# fx12 = - p[2]*x[1,i-1]&lt;br /&gt;
# fx21 = p[4]*x[2,i-1]&lt;br /&gt;
# fx22 = -p[3] + p[4]*x[1,i-1] - p[6]*u[uidx[i-1]]&lt;br /&gt;
# fp11 = -x[1,i-1]*x[2,i-1]&lt;br /&gt;
# fp22 = x[1,i-1]*x[2,i-1]&lt;br /&gt;
&lt;br /&gt;
# G11: fx11*G11 + fx12*G21 + fp11&lt;br /&gt;
subject to dynamicG11{i in 1..nt}:&lt;br /&gt;
	G[1,1,i] = G[1,1,i-1] + h * ( &lt;br /&gt;
      ( p[1] - p[2]*x[2,i] - p[5]*u[uidx[i-1]] ) * G[1,1,i]&lt;br /&gt;
    + ( - p[2]*x[1,i] ) * G[2,1,i]&lt;br /&gt;
    + ( -x[1,i]*x[2,i] )&lt;br /&gt;
    );&lt;br /&gt;
&lt;br /&gt;
# G12: fx11*G12 + fx12*G22 &lt;br /&gt;
subject to dynamicG12{i in 1..nt}:&lt;br /&gt;
	G[1,2,i] = G[1,2,i-1] + h * ( &lt;br /&gt;
      ( p[1] - p[2]*x[2,i] - p[5]*u[uidx[i-1]] ) * G[1,2,i]&lt;br /&gt;
    + ( - p[2]*x[1,i] ) * G[2,2,i]&lt;br /&gt;
    );&lt;br /&gt;
	&lt;br /&gt;
# G21: fx21*G11 + fx22*G21&lt;br /&gt;
subject to dynamicG21{i in 1..nt}:&lt;br /&gt;
	G[2,1,i] = G[2,1,i-1] + h * ( &lt;br /&gt;
      ( p[4]*x[2,i] ) * G[1,1,i]&lt;br /&gt;
    + ( -p[3] + p[4]*x[1,i] - p[6]*u[uidx[i-1]] ) * G[2,1,i]&lt;br /&gt;
    );&lt;br /&gt;
&lt;br /&gt;
# G22: fx21*G12 + fx22*G22 + fp22&lt;br /&gt;
subject to dynamicG22{i in 1..nt}:&lt;br /&gt;
	G[2,2,i] = G[2,2,i-1] + h * ( &lt;br /&gt;
      ( p[4]*x[2,i] ) * G[1,2,i]&lt;br /&gt;
    + ( -p[3] + p[4]*x[1,i] - p[6]*u[uidx[i-1]] ) * G[2,2,i]&lt;br /&gt;
    + ( x[1,i]*x[2,i] )&lt;br /&gt;
    );&lt;br /&gt;
&lt;br /&gt;
### Fisher information matrix &lt;br /&gt;
# F1: w1 * G11*G11 + w2 * G12*G12&lt;br /&gt;
subject to dynamicF1{i in 1..nt}:&lt;br /&gt;
	F[1,i] = F[1,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[1,1,i] + w[2,uidx[i-1]] * G[1,2,i] * G[2,1,i]);&lt;br /&gt;
&lt;br /&gt;
# F2: w1 * G11*G21 + w2 * G12*G22&lt;br /&gt;
subject to dynamicF2{i in 1..nt}:&lt;br /&gt;
	F[2,i] = F[2,i-1] + h * ( w[1,uidx[i-1]] * G[1,1,i] * G[2,1,i] + w[2,uidx[i]] * G[1,2,i] * G[2,2,i]);&lt;br /&gt;
&lt;br /&gt;
# F3: w1 * G21*G21 + w2 * G22*G22&lt;br /&gt;
subject to dynamicF3{i in 1..nt}:&lt;br /&gt;
	F[3,i] = F[3,i-1] + h * ( w[1,uidx[i-1]] * G[2,1,i] * G[2,1,i] + w[2,uidx[i-1]] * G[2,2,i] * G[2,2,i]);&lt;br /&gt;
&lt;br /&gt;
### Summing up measurements&lt;br /&gt;
subject to wSum{k in 1..nx}:&lt;br /&gt;
	sum{i in 0..nt-1} h*w[k,uidx[i]] &amp;lt;= p[6+k];&lt;br /&gt;
&lt;br /&gt;
### Initial values&lt;br /&gt;
subject to iniX{k in 1..nx}:	x[k,0] = x0[k];&lt;br /&gt;
subject to iniG{k in 1..nx, j in 1..npar}:	G[k,j,0] = G0[k,j];	&lt;br /&gt;
subject to iniF{k in 1..nF}:	F[k,0] = F0[k];&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
a data file vplotka.dat,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;AMPL&amp;quot;&amp;gt;&lt;br /&gt;
# ------------------------------------&lt;br /&gt;
# Data: Lotka Experimental Design problem&lt;br /&gt;
# ------------------------------------&lt;br /&gt;
&lt;br /&gt;
# Change values here&lt;br /&gt;
param ntperu := 10;&lt;br /&gt;
param nu := 50;&lt;br /&gt;
param nt := 500;&lt;br /&gt;
param tf := 12;&lt;br /&gt;
param nx := 2;&lt;br /&gt;
param np := 9;&lt;br /&gt;
param npar := 2;&lt;br /&gt;
param nF := 3;&lt;br /&gt;
param initialization := 1e-1;&lt;br /&gt;
&lt;br /&gt;
let x0[1] := 0.5;&lt;br /&gt;
let x0[2] := 0.7;&lt;br /&gt;
let {k in 1..nx, j in 1..npar} G0[k,j] := 0;&lt;br /&gt;
let {k in 1..nF} F0[k] := 0;&lt;br /&gt;
let F0[2] := 0;&lt;br /&gt;
&lt;br /&gt;
let p[1] := 1.0;&lt;br /&gt;
let p[2] := 1.0;&lt;br /&gt;
let p[3] := 1.0;&lt;br /&gt;
let p[4] := 1.0;&lt;br /&gt;
let p[5] := 0.4;&lt;br /&gt;
let p[6] := 0.2;&lt;br /&gt;
let p[7] := 4.0;&lt;br /&gt;
let p[8] := 4.0;&lt;br /&gt;
let p[9] := 0;&lt;br /&gt;
&lt;br /&gt;
# Set indices of controls corresponding to time points&lt;br /&gt;
for {i in 0..nu-1} {&lt;br /&gt;
	for {j in 0..ntperu-1} {&lt;br /&gt;
		let uidx[i*ntperu+j] := i; &lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
let uidx[nt] := nu-1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Initialization&lt;br /&gt;
let h := tf / nt;&lt;br /&gt;
&lt;br /&gt;
let {i in 0..nu-1} u[i] := 0.3;&lt;br /&gt;
let {k in 1..nx, i in 0..nu-1} w[k,i] := 1.0;&lt;br /&gt;
let {k in 1..nx, i in 0..nt} x[k,i] := x0[k];&lt;br /&gt;
let {k in 1..nx, j in 1..npar, i in 0..nt} G[k,j,i] := initialization; # G0[k,j];&lt;br /&gt;
let {k in 1..nF, i in 0..nt} F[k,i] := initialization; # F0[k];&lt;br /&gt;
let {k in 2..2, i in 0..nt} F[k,i] := 0;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and a running script vplotka.run,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;AMPL&amp;quot;&amp;gt;&lt;br /&gt;
# ------------------------------------&lt;br /&gt;
# Solve Lotka Experimental Design problem&lt;br /&gt;
# ------------------------------------&lt;br /&gt;
&lt;br /&gt;
model vplotka.mod;&lt;br /&gt;
data vplotka.dat;&lt;br /&gt;
&lt;br /&gt;
option solver ipopt;&lt;br /&gt;
solve;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
[[Category:AMPL]]&lt;/div&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
</feed>