<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=ASCEND%2FC2%2FWriting-basic-model%2FEnglish</id>
		<title>ASCEND/C2/Writing-basic-model/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=ASCEND%2FC2%2FWriting-basic-model%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;action=history"/>
		<updated>2026-05-13T23:17:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=12699&amp;oldid=prev</id>
		<title>Nancyvarkey at 15:09, 6 July 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=12699&amp;oldid=prev"/>
				<updated>2014-07-06T15:09:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:09, 6 July 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 202:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 202:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the corresponding results&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the corresponding results&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Observe that '''ASCEND''' has solved the '''model '''and you will have a new set of results.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Observe that '''ASCEND''' has solved the '''model '''and you will have a new set of results.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the '''fixed variables''' are shown in green color and '''free variables''', calculated by '''ASCEND''' are shown in blue color.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note that the '''fixed variables''' are shown in green color and '''free variables''', calculated by '''ASCEND''' are shown in blue color.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also note that the final results has been displayed with a '''tick mark''' and the '''fixed variables''' have been denoted by a '''closed lock icon'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also note that the final results has been displayed with a '''tick mark''' and the '''fixed variables''' have been denoted by a '''closed lock icon'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We can also specify the '''fixed''' and '''free variables''' in the '''code''' and assign values to the '''variables'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We can also specify the '''fixed''' and '''free variables''' in the '''code''' and assign values to the '''variables'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In '''ASCEND''' the solution procedure is separate from the problem statement.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In '''ASCEND''' the solution procedure is separate from the problem statement.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Methods '''contain procedures to solve the '''model'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Methods '''contain procedures to solve the '''model'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 298:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 303:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Run the code using '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;on_laod &lt;/del&gt;method''' and press '''solve'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Run the code using '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;on_load &lt;/ins&gt;method''' and press '''solve'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Again run the '''Method on_load''' and click on '''Solve'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Again run the '''Method on_load''' and click on '''Solve'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;You will see '''ASCEND''' has fixed '''variables a '''and '''d''' and assigned the values as mentioned under '''Values''' section in the '''code'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;You will see &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;'''ASCEND''' has fixed '''variables a '''and '''d''' &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;and assigned the values &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;as mentioned under '''Values''' section in the '''code'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=12698&amp;oldid=prev</id>
		<title>Nancyvarkey at 15:07, 6 July 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=12698&amp;oldid=prev"/>
				<updated>2014-07-06T15:07:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;amp;diff=12698&amp;amp;oldid=11333&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=11333&amp;oldid=prev</id>
		<title>Tarung at 06:14, 17 June 2014</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=11333&amp;oldid=prev"/>
				<updated>2014-06-17T06:14:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;amp;diff=11333&amp;amp;oldid=11295&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Tarung</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=11295&amp;oldid=prev</id>
		<title>Tarung: Created page with ''''Tutorial 3: Developing a Basic model in ASCEND'''   {| style=&quot;border-spacing:0;&quot; | style=&quot;border:0.75pt solid #000001;padding:0.0104in;&quot;| &lt;center&gt;'''Visual Cue'''&lt;/center&gt; | s…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ASCEND/C2/Writing-basic-model/English&amp;diff=11295&amp;oldid=prev"/>
				<updated>2014-06-15T14:55:42Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Tutorial 3: Developing a Basic model in ASCEND&amp;#039;&amp;#039;&amp;#039;   {| style=&amp;quot;border-spacing:0;&amp;quot; | style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Visual Cue&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt; | s…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Tutorial 3: Developing a Basic model in ASCEND'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| &amp;lt;center&amp;gt;'''Visual Cue'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| &amp;lt;center&amp;gt;'''Narration'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 1&lt;br /&gt;
&lt;br /&gt;
Title slide&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Welcome to the spoken tutorial on '''Developing a Basic Model in ASCEND'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide 2&lt;br /&gt;
&lt;br /&gt;
Learning Objectives&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| In this tutorial,&lt;br /&gt;
&lt;br /&gt;
We will learn how to&lt;br /&gt;
&lt;br /&gt;
* Build a basic model&lt;br /&gt;
* Add methods to the basic model and&lt;br /&gt;
* Write dimensionally consistent equations&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 3&lt;br /&gt;
&lt;br /&gt;
System Requirement&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Here I am using&lt;br /&gt;
&lt;br /&gt;
* Ubuntu Linux OS v. 12.04&lt;br /&gt;
* ASCEND v. 0.9.8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 4&lt;br /&gt;
&lt;br /&gt;
Pre-requisites&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| To know more about ASCEND&lt;br /&gt;
&lt;br /&gt;
please visit ascend4.org&lt;br /&gt;
&lt;br /&gt;
For relevant tutorials please visit our website&lt;br /&gt;
&lt;br /&gt;
http://spoken-tutorial.org&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 5&lt;br /&gt;
&lt;br /&gt;
Example&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Let us begin the tutorial with a simple example. In this example let us solve 3 simultaneous equations with 3 unknowns&lt;br /&gt;
&lt;br /&gt;
we will use a text editor like gedit to write our model&lt;br /&gt;
&lt;br /&gt;
I already have the code for the example in a text file&lt;br /&gt;
&lt;br /&gt;
let me explain the code&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open mymodel.a4c in gedit&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open the file mymodel.a4c in a text editor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the “system.a4l” line&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Initially we mention the library (that is a collection of pre-defined models that we need in our model).&lt;br /&gt;
&lt;br /&gt;
Here we require the basic sysyem.a4l library&lt;br /&gt;
&lt;br /&gt;
.a4l extension denotes the ascend4 library&lt;br /&gt;
&lt;br /&gt;
the name of the library is written in double quotes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the semi colon&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| note that semi colon is a statement terminator in ascend&lt;br /&gt;
&lt;br /&gt;
Ascend considers all the statements as one sentence if semi colon is not put after each statement&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight MODEL my_model&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| MODEL my_model begins a model with name my_model&lt;br /&gt;
&lt;br /&gt;
you can give any name to the model&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight (*variables declaration*)&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| In Ascend comments are written in parenthesis enclosed with in a pair of asterik mark&lt;br /&gt;
&lt;br /&gt;
comments are not executed&lt;br /&gt;
&lt;br /&gt;
they make the model easier to understand&lt;br /&gt;
&lt;br /&gt;
we will now define variables for our model&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight solver_var&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;border:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Any variable whose value is expected to be computed by Ascend must be of type solver_var&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight all the defined variables&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Thus we define variable x,y,z,d and a as a solver_var&lt;br /&gt;
&lt;br /&gt;
the definition of the type solver_var is predefined in the system.a4l library&lt;br /&gt;
&lt;br /&gt;
IS_A is an operator in Ascend which is used to define variable types&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight all the equation sequentially&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Equations to be solved are&lt;br /&gt;
&lt;br /&gt;
x+y+z = a*d&lt;br /&gt;
&lt;br /&gt;
x+y+2*z = 5 and&lt;br /&gt;
&lt;br /&gt;
5*x+2*y-3*z = 0&lt;br /&gt;
&lt;br /&gt;
Note that we have not mentioned how to solve this given set of equations&lt;br /&gt;
&lt;br /&gt;
we have also not mentioned which variables are to be specified and which are to be calculated&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight END my_model&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now end this model with END my_model&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Show the loaded model on Ascend interface&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now open this model in Ascend&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the successful execution line in the message panel&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Note that Ascend has executed the on_load method by default&lt;br /&gt;
&lt;br /&gt;
this can be seen from the message in the panel below&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the values of the variables on Ascend interface&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Observe that Ascend has given the default value of 0.5 to each of the variable&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Click the solve button&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now click on the solve icon&lt;br /&gt;
&lt;br /&gt;
Ascend displays the results&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the converged message in the panel below&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| This can be confirmed in the panel below&lt;br /&gt;
&lt;br /&gt;
A converged message is displayed after the successful completion of the calculation&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the values of the variables y and d&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Note that Ascend squared the system automatically&lt;br /&gt;
&lt;br /&gt;
keeping the values of two variables y and d as default value and calculated the value for rest of the variables&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Right click on d and assign it a value 1&lt;br /&gt;
&lt;br /&gt;
Fix d by selecting the fixed option&lt;br /&gt;
&lt;br /&gt;
Repeat the same for x&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now suppose we want to make x and d as our fixed variable by assigning values to them and solve for a, y and z&lt;br /&gt;
&lt;br /&gt;
then, right click on d and select properties from the drop down menu&lt;br /&gt;
&lt;br /&gt;
Under values, assign a value to d&lt;br /&gt;
&lt;br /&gt;
here I am giving the value 1&lt;br /&gt;
&lt;br /&gt;
now in solving section, select fixed&lt;br /&gt;
&lt;br /&gt;
click on Apply and OK&lt;br /&gt;
&lt;br /&gt;
now similarly repeat the same procedure for fixing the value of x&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the corresponding results&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| observe that ascend has solve the model and you will have a new set of results&lt;br /&gt;
&lt;br /&gt;
note that the fixed variables are shown in green color and free variables, calculated by Ascend are shown in blue color&lt;br /&gt;
&lt;br /&gt;
Also note that the final result has been displayed with a tick mark and the fixed variables have been denoted by a closed lock icon&lt;br /&gt;
&lt;br /&gt;
we can also specify the fixed and free variables in the code and assigning value to the variables&lt;br /&gt;
&lt;br /&gt;
In Ascend the solution procedure is separate from the problem statement&lt;br /&gt;
&lt;br /&gt;
Methods contain procedures to solve the model&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open my_model in gedit&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| We will now explain different methods to solve our model&lt;br /&gt;
&lt;br /&gt;
open the file my_model.a4c in a text editor&lt;br /&gt;
&lt;br /&gt;
We write the methods after equations&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Delete END my_model and remove asterik from METHODS and end of the code&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now remove the line END my_model&lt;br /&gt;
&lt;br /&gt;
Delete the parenthesis and asterik mark in front of methods and at the end of the code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlighte the corrsponding lines in the code sequentially&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Under method specify, we fixed variable a and d&lt;br /&gt;
&lt;br /&gt;
we also assign values to the variables as a = 1 and d=3,note that to assign the values to a particular variable, we use a : and = sign together&lt;br /&gt;
&lt;br /&gt;
I will refer := to sign as is equal to from here on&lt;br /&gt;
&lt;br /&gt;
Under method on_load we run the method specify&lt;br /&gt;
&lt;br /&gt;
This is the method that describes Ascend the action to be taken when a model is loaded&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Click on the save button&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now end the method on_load and my_model and save this file&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Show the ascend interface&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now open this with Ascend&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Select the on_load method and run the code&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now under methods select on_load&lt;br /&gt;
&lt;br /&gt;
click on run&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Click on the solve button and highlight the asnwers&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| click on solve icon&lt;br /&gt;
&lt;br /&gt;
observe that Ascend has fixed the variable a and d and calculated the values for x,y and z&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open the code file again in gedit&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now open the code for my_model.a4c again&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Carry out the required editing in the code file&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now remove the values assigned under specify&lt;br /&gt;
&lt;br /&gt;
Now we will add a new method called values&lt;br /&gt;
&lt;br /&gt;
type method values and then type a = 1, d= 2 and end values&lt;br /&gt;
&lt;br /&gt;
now under on_load type run values after run specify&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open the file with ascend&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now save the file and open it with Ascend&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Run the code using on_laod method and press solve&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Again run the method on_load and click on solve&lt;br /&gt;
&lt;br /&gt;
you will see ascend has fixed variable a and d and assigned the values as mentioned under values section in the code&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open the required code file in gedit&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| now let’s look at an interesting feature of dimensional consistency in Ascend with the help of another model&lt;br /&gt;
&lt;br /&gt;
here we will compute the mass of a cylinder&lt;br /&gt;
&lt;br /&gt;
I already have the code for this model&lt;br /&gt;
&lt;br /&gt;
let me explain the code&lt;br /&gt;
&lt;br /&gt;
open cylinder.a4c with a text editor&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the corresponding line in a sequential order&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| note that here we require atoms.a4l library as compared to systems library used earlier in the last model&lt;br /&gt;
&lt;br /&gt;
atoms is a refined version of systems library&lt;br /&gt;
&lt;br /&gt;
and contains the definition of various variable types&lt;br /&gt;
&lt;br /&gt;
that represent different physical units&lt;br /&gt;
&lt;br /&gt;
For example we write v is a volume&lt;br /&gt;
&lt;br /&gt;
m is a mass etc.&lt;br /&gt;
&lt;br /&gt;
volume, mass etc. are different variable types defined in atoms.a4l&lt;br /&gt;
&lt;br /&gt;
This helps in ensuring that the equations written in Ascend model are dimensionally consistent&lt;br /&gt;
&lt;br /&gt;
After this we write equations and methods as explained earlier&lt;br /&gt;
&lt;br /&gt;
Note that while specifying values for these variable types, we need to mention the corresponding physical units in curly brackets&lt;br /&gt;
&lt;br /&gt;
Here we write V = 100 cm^3 and p = 100kg/m^3&lt;br /&gt;
&lt;br /&gt;
note that V is in CGS units while p is in SI units&lt;br /&gt;
&lt;br /&gt;
The user doesn't have to worry about the units as Ascend itself performs the unit conversion&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open the file in Ascend and run and solve it using the on_load method&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now open this file in Ascend&lt;br /&gt;
&lt;br /&gt;
Now once again run the on_load method&lt;br /&gt;
&lt;br /&gt;
and solve the problem&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Highlight the answers&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| observe that ascend has converted the values of volume into SI units and then calculated the mass in SI units&lt;br /&gt;
&lt;br /&gt;
Note that Ascend by default uses SI units until specified otherwise&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 5:&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Now let us summarize,in this tutorial,&lt;br /&gt;
&lt;br /&gt;
We have learned how to&lt;br /&gt;
&lt;br /&gt;
* Build a basic model&lt;br /&gt;
* Add methods to the basic model and&lt;br /&gt;
* Write dimensionally consistent equations&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 6:&lt;br /&gt;
&lt;br /&gt;
Assignment&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Do the following assignment&lt;br /&gt;
&lt;br /&gt;
Edit the model cylinder in a text editor and make it dimensionally inconsistent&lt;br /&gt;
&lt;br /&gt;
For example, write m is a distance instead of mass&lt;br /&gt;
&lt;br /&gt;
Now run this dimensionally inconsistent model in Ascend and observe the output&lt;br /&gt;
&lt;br /&gt;
Add more variables and equations to the model cylinder.a4c and solve it in Ascend&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 7&lt;br /&gt;
&lt;br /&gt;
About the Spoken Tutorial Project&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Information on the spoken tutorial project is available on our website&lt;br /&gt;
&lt;br /&gt;
spoken-tutorial.org&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 8&lt;br /&gt;
&lt;br /&gt;
Spoken Tutorial Workshops&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Details on Workshops based on spoken tutorials is also available on the website&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 9&lt;br /&gt;
&lt;br /&gt;
Acknowledgements&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Spoken tutorial project is funded by NMEICT,MHRD&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| Open Slide number 10&lt;br /&gt;
&lt;br /&gt;
Thank You&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.75pt solid #000001;border-left:0.75pt solid #000001;border-right:0.75pt solid #000001;padding:0.0104in;&amp;quot;| This is Priya Bagde from IIT Bombay signing off&lt;br /&gt;
&lt;br /&gt;
Thank You for joining&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tarung</name></author>	</entry>

	</feed>