<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ACalculate_Results_from_a_Model%2FNotes</id>
	<title>Talk:Calculate Results from a Model/Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ACalculate_Results_from_a_Model%2FNotes"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;action=history"/>
	<updated>2026-04-18T07:43:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63562&amp;oldid=prev</id>
		<title>Kate Racaza: Replaced content with &#039;==DRAFT==&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63562&amp;oldid=prev"/>
		<updated>2016-04-28T17:14:35Z</updated>

		<summary type="html">&lt;p&gt;Replaced content with &amp;#039;==DRAFT==&amp;#039;&lt;/p&gt;
&lt;a href=&quot;https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;amp;diff=63562&amp;amp;oldid=63559&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63559&amp;oldid=prev</id>
		<title>Kate Racaza at 16:59, 28 April 2016</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63559&amp;oldid=prev"/>
		<updated>2016-04-28T16:59:40Z</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 16:59, 28 April 2016&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-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&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;Before you begin:&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;Before you begin:&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;*Create a test repository (can use [http://weibull.reliasoft.com/ Weibull++]&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;[http://alta.reliasoft.com/ ALTA&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;], [http://blocksim.reliasoft.com/ BlockSim] or [http://rga.reliasoft.com/ RGA&lt;/del&gt;]). Perform a simple analysis and then publish a model of the analysis. You&#039;ll want to use a published model with this tutorial so you can compare the results returned by the API with the results obtained from the Quick Calculation Pad (QCP).&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;*Create a test repository (can use [http://weibull.reliasoft.com/ Weibull++] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or &lt;/ins&gt;[http://alta.reliasoft.com/ ALTA]). Perform a simple analysis and then publish a model of the analysis. You&#039;ll want to use a published model with this tutorial so you can compare the results returned by the API with the results obtained from the Quick Calculation Pad (QCP).&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;*Note the published model&amp;#039;s object ID number. You will use the ID# to retrieve the model from the database. (To display the object IDs, choose &amp;#039;&amp;#039;&amp;#039;File &amp;gt; Application Setup&amp;#039;&amp;#039;&amp;#039;, then click &amp;#039;&amp;#039;&amp;#039;Other&amp;#039;&amp;#039;&amp;#039; under the Synthesis Settings heading in the navigation panel. Select the &amp;#039;&amp;#039;&amp;#039;Display Object IDs&amp;#039;&amp;#039;&amp;#039; check box. The object ID of the model is displayed in the Resource Manager.)&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;*Note the published model&amp;#039;s object ID number. You will use the ID# to retrieve the model from the database. (To display the object IDs, choose &amp;#039;&amp;#039;&amp;#039;File &amp;gt; Application Setup&amp;#039;&amp;#039;&amp;#039;, then click &amp;#039;&amp;#039;&amp;#039;Other&amp;#039;&amp;#039;&amp;#039; under the Synthesis Settings heading in the navigation panel. Select the &amp;#039;&amp;#039;&amp;#039;Display Object IDs&amp;#039;&amp;#039;&amp;#039; check box. The object ID of the model is displayed in the Resource Manager.)&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-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&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;           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&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;           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&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;           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&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;           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===Notes===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For ALTA models, you can specify the use stress level to use for the calculations by using the [[CModel.SetUseStress|cModel.SetUseStress]] method. For example, the following code returns the reliability at 100 hrs for a use stress level of 200 (the 0 parameter indicates that the stress value applies to the first stress in the model):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; {{APIComment|...}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   AModel.SetUseStress(0, 200)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;   Result1 = AModel.Reliability(100)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; {{APIComment|...}}&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;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;===References===&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;===References===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63558&amp;oldid=prev</id>
		<title>Kate Racaza at 16:21, 28 April 2016</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63558&amp;oldid=prev"/>
		<updated>2016-04-28T16:21:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;amp;diff=63558&amp;amp;oldid=63554&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63554&amp;oldid=prev</id>
		<title>Kate Racaza: Created page with &#039;{{Template:API}}{{Template:BacktoPrevPage|&lt;&lt; Back to Tutorials Main Page}}  In Synthesis applications, models can represent probabilities, durations or costs, e…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Talk:Calculate_Results_from_a_Model/Notes&amp;diff=63554&amp;oldid=prev"/>
		<updated>2016-04-27T23:47:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{Template:API}}{{Template:BacktoPrevPage|&lt;a href=&quot;/index.php/API_Tutorials&quot; title=&quot;API Tutorials&quot;&gt;&amp;lt;&amp;lt; Back to Tutorials Main Page&lt;/a&gt;}}  In Synthesis applications, models can represent probabilities, durations or costs, e…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:API}}{{Template:BacktoPrevPage|[[API Tutorials|&amp;lt;&amp;lt; Back to Tutorials Main Page]]}}&lt;br /&gt;
&lt;br /&gt;
In Synthesis applications, models can represent probabilities, durations or costs, either fixed or time-dependent. They are used by other resources to represent the reliability of a component, the duration of a task, the expected cost of a repair and many other characteristics. &lt;br /&gt;
&lt;br /&gt;
In this tutorial, you&amp;#039;ll learn how to obtain calculated results from models.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Before you begin:&lt;br /&gt;
&lt;br /&gt;
*Create a test repository, perform a simple analysis and then publish a model from the analysis. You&amp;#039;ll want to use a published model with this tutorial so you can compare the results returned by the API with the results obtained from the Quick Calculation Pad (QCP)&lt;br /&gt;
&lt;br /&gt;
*Note the published model&amp;#039;s object ID number. This will help you trace the response of the API. (To display the object IDs, choose &amp;#039;&amp;#039;&amp;#039;File &amp;gt; Application Setup&amp;#039;&amp;#039;&amp;#039;, then click &amp;#039;&amp;#039;&amp;#039;Other&amp;#039;&amp;#039;&amp;#039; under the Synthesis Settings heading in the navigation panel. Select the &amp;#039;&amp;#039;&amp;#039;Display Object IDs&amp;#039;&amp;#039;&amp;#039; check box. The object ID of the model is displayed in the Resource Manager.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tutorial: Calculate Results from a Model==&lt;br /&gt;
The following example demonstrates how to obtain calculated results from a model resource. A discussion of the example follows.&lt;br /&gt;
&lt;br /&gt;
A VBA version of the code sample is available [[Calculate_Results_from_a_Model/VBA|here]]. &lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VB.NET&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIPrefix|Imports}} SynthesisAPI &lt;br /&gt;
 &lt;br /&gt;
  {{APIPrefix|Module}} Module1&lt;br /&gt;
     {{APIPrefix|Sub}} Main()&lt;br /&gt;
   &lt;br /&gt;
    {{APIComment|&amp;#039;Connect to a Synthesis repository and project.}}&lt;br /&gt;
      {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
      MyRepository.ConnectToRepository({{APIString|&amp;quot;C:\RSRepository1.rsr10&amp;quot;}}){{APIComment|&amp;#039;Replace with name and path to test repository.}}&lt;br /&gt;
      MyRepository.Project.SetCurrentProject(1){{APIComment|&amp;#039;Replace with the object ID of test project.}}&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;Retrieve a model from the repository.}}      &lt;br /&gt;
      {{APIPrefix|Dim}} AModel {{APIPrefix|As}} cModel&lt;br /&gt;
      AModel = MyRepository.Model.GetModel(21){{APIComment|&amp;#039;Replace with the object ID of test model.}}&lt;br /&gt;
   &lt;br /&gt;
    {{APIComment|&amp;#039;Declare some variables to store the results.}}&lt;br /&gt;
      {{APIPrefix|Dim}} Result1 {{APIPrefix|As}} Double&lt;br /&gt;
      {{APIPrefix|Dim}} Result2 {{APIPrefix|As}} Double&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;Calculate the model&amp;#039;s reliability at time &amp;amp;#61; 100 hrs and mean time.}}&lt;br /&gt;
      Result1 = AModel.Reliability(100)&lt;br /&gt;
      Result2 = AModel.MeanTime&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;Set the confidence level to 90% two-sided bounds.}}&lt;br /&gt;
    {{APIComment|&amp;#039;Declare a string variable for any errors found during this method.}}&lt;br /&gt;
      {{APIPrefix|Dim}} ErrorMsg {{APIPrefix|As}} String&lt;br /&gt;
      AModel.SetConfidenceLevel(0.9, ConfBoundsSides.TwoSidedBoth, False, ErrorMsg)&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;To store the confidence bounds results, declare new BoundsValues objects.}}&lt;br /&gt;
      {{APIPrefix|Dim}} BResult1 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
      {{APIPrefix|Dim}} BResult2 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;Calculate bounds for the reliability at 100 hrs and the mean time.}}&lt;br /&gt;
      BResult1 = AModel.Bounds_Reliability(100)&lt;br /&gt;
      BResult2 = AModel.Bounds_MeanTime&lt;br /&gt;
 &lt;br /&gt;
    {{APIComment|&amp;#039;Display the output.}}&lt;br /&gt;
      MsgBox ({{APIString|&amp;quot;Reliability &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result1 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
              {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
              {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.lower &amp;amp; vbNewLine)&lt;br /&gt;
      MsgBox ({{APIString|&amp;quot;Mean Time &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result2 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
              {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
              {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;br /&gt;
 &lt;br /&gt;
     {{APIPrefix|End Sub}}&lt;br /&gt;
 {{APIPrefix|End Module}}&lt;br /&gt;
&lt;br /&gt;
==Discussion==&lt;br /&gt;
Begin by connecting to a Synthesis repository and project (for details, see [[Connect_or_Disconnect_from_a_Synthesis_Repository|this tutorial]].) The section of code below demonstrates how to connect to a standard repository and open one of its projects. It assumes that a standard repository called &amp;quot;RSRepository1.rsr10&amp;quot; exists in the C drive and that we&amp;#039;re accessing project ID#1. If you&amp;#039;re copying this section of code, be sure to replace the inputs with appropriate data for your test repository. &lt;br /&gt;
&lt;br /&gt;
 {{APIComment|&amp;#039;Connect to a Synthesis repository and project.}}&lt;br /&gt;
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
   MyRepository.ConnectToRepository({{APIString|&amp;quot;C:\RSRepository1.rsr10&amp;quot;}}){{APIComment|&amp;#039;Replace with name and path to test repository.}}&lt;br /&gt;
   MyRepository.Project.SetCurrentProject(1){{APIComment|&amp;#039;Replace with the object ID of test project.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==================================== &lt;br /&gt;
1. Create a new module and begin by connecting to a Synthesis repository and project. The following code assumes that a standard repository called &amp;quot;RSRepository1.rsr10&amp;quot; exists in the C drive. &lt;br /&gt;
&lt;br /&gt;
 {{APIComment|&amp;#039;Connect to the Synthesis repository and set project ID#1 as the current project.}}&lt;br /&gt;
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
   MyRepository.ConnectToRepository({{APIString|&amp;quot;C:\RSRepository1.rsr10&amp;quot;}})&lt;br /&gt;
   MyRepository.Project.SetCurrentProject(1)&lt;br /&gt;
&lt;br /&gt;
2. Retrieve a model from the repository. The following code assumes that the repository contains a model with ID number 21. &lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Retrieve the model with ID# 21 from the repository.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Amodel {{APIPrefix|As New}} cModel&lt;br /&gt;
   {{APIPrefix|Set}} AModel = MyRepository.Model.GetModel(21)&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VB.NET&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Retrieve the model with ID# 21 from the repository.}} &lt;br /&gt;
   {{APIPrefix|Dim}} Amodel {{APIPrefix|As New}} cModel&lt;br /&gt;
   AModel = MyRepository.Model.GetModel(21)&lt;br /&gt;
&lt;br /&gt;
2. Use the &amp;lt;code&amp;gt;Reliability&amp;lt;/code&amp;gt; method to calculate for the reliability at 100 hrs and the &amp;lt;code&amp;gt;MeanTime&amp;lt;/code&amp;gt; method to return the mean time to failure.&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Declare variables.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Result1 {{APIPrefix|As}} Double&lt;br /&gt;
   {{APIPrefix|Dim}} Result2 {{APIPrefix|As}} Double&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate the model&amp;#039;s reliability at time &amp;amp;#61; 100 hrs and mean time.}} &lt;br /&gt;
   Result1 = AModel.Reliability(100)&lt;br /&gt;
   Result2 = AModel.MeanTime&lt;br /&gt;
&lt;br /&gt;
3. Let&amp;#039;s add confidence bounds calculations to the results. Use the &amp;lt;code&amp;gt;SetConfidenceLevel&amp;lt;/code&amp;gt; method to specify 90% two-sided confidence bounds.&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Set the confidence level to 90% two-sided bounds.}}&lt;br /&gt;
 {{APIComment|&amp;#039;Declare a string variable for any errors found during this method.}}&lt;br /&gt;
   {{APIPrefix|Dim}} ErrorMsg {{APIPrefix|As}} String&lt;br /&gt;
   {{APIPrefix|Call}} AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Initiate new instances of the BoundsValues class.}}&lt;br /&gt;
   {{APIPrefix|Dim}} BResult1 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
   {{APIPrefix|Dim}} BResult2 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate bounds for the reliability at 100 hrs and the mean time.}} &lt;br /&gt;
   {{APIPrefix|Set}} BResult1 = AModel.Bounds_Reliability(100)&lt;br /&gt;
   {{APIPrefix|Set}} BResult2 = AModel.Bounds_MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Display the output.}}&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Reliability &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result1 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.lower &amp;amp; vbNewLine)&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Mean Time &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result2 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VB.NET&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Set the confidence level to 90% two-sided bounds.}}&lt;br /&gt;
 {{APIComment|&amp;#039;Declare a string variable for any errors found during this method.}}&lt;br /&gt;
   {{APIPrefix|Dim}} ErrorMsg {{APIPrefix|As}} String&lt;br /&gt;
   AModel.SetConfidenceLevel(0.9, ConfBoundsSides.TwoSidedBoth, False, ErrorMsg)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Initiate new instances of the BoundsValues class.}}&lt;br /&gt;
   {{APIPrefix|Dim}} BResult1 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
   {{APIPrefix|Dim}} BResult2 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate bounds for the reliability at 100 hrs and the mean time.}} &lt;br /&gt;
   BResult1 = AModel.Bounds_Reliability(100)&lt;br /&gt;
   BResult2 = AModel.Bounds_MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Display the output.}}&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Reliability &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result1 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.lower &amp;amp; vbNewLine)&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Mean Time &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result2 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;br /&gt;
&lt;br /&gt;
===Test the Code===&lt;br /&gt;
Below are the complete code lists for this example. To test them, run the application by clicking &amp;#039;&amp;#039;&amp;#039;Start&amp;#039;&amp;#039;&amp;#039; on the Debug menu. Compare the results returned by the API with the results obtained from the Quick Calculation Pad (QCP).&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 Sub Main()&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Connect to the Synthesis repository and set project ID#1 as the current project.}}&lt;br /&gt;
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
   MyRepository.ConnectToRepository({{APIString|&amp;quot;C:\RSRepository1.rsr10&amp;quot;}})&lt;br /&gt;
   MyRepository.Project.SetCurrentProject(1)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Retrieve the model with ID# 21 from the repository.}}&lt;br /&gt;
   {{APIPrefix|Dim}} AModel {{APIPrefix|As}} cModel&lt;br /&gt;
   {{APIPrefix|Set}} AModel = MyRepository.Model.GetModel(21)&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Declare variables.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Result1 {{APIPrefix|As}} Double&lt;br /&gt;
   {{APIPrefix|Dim}} Result2 {{APIPrefix|As}} Double&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate the model&amp;#039;s reliability at time &amp;amp;#61; 100 hrs and mean time.}}&lt;br /&gt;
   Result1 = AModel.Reliability(100)&lt;br /&gt;
   Result2 = AModel.MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Set the confidence level to 90% two-sided bounds.}}&lt;br /&gt;
 {{APIComment|&amp;#039;Declare a string variable for any errors found during this method.}}&lt;br /&gt;
   {{APIPrefix|Dim}} ErrorMsg {{APIPrefix|As}} String&lt;br /&gt;
   {{APIPrefix|Call}} AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Initiate new instances of the BoundsValues class.}}&lt;br /&gt;
   {{APIPrefix|Dim}} BResult1 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
   {{APIPrefix|Dim}} BResult2 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate bounds for the reliability at 100 hrs and the mean time.}}&lt;br /&gt;
   {{APIPrefix|Set}} BResult1 = AModel.Bounds_Reliability(100)&lt;br /&gt;
   {{APIPrefix|Set}} BResult2 = AModel.Bounds_MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Display the output.}}&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Reliability &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result1 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.lower &amp;amp; vbNewLine)&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Mean Time &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result2 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;br /&gt;
 &lt;br /&gt;
 End Sub&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
See &amp;lt;code&amp;gt;[[CModel Class|cModel]]&amp;lt;/code&amp;gt; class for a list of all available calculation methods for models.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
To learn more, see the reference documentation for the class and methods discussed in this tutorial:&lt;br /&gt;
&lt;br /&gt;
*[[CModel.Reliability|cModel.Reliability Method]]&lt;br /&gt;
*[[CModel.MeanTime|cModel.MeanTime Method]]&lt;br /&gt;
*[[CModel.SetConfidenceLevel|cModel.SetConfidenceLevel Method]]&lt;br /&gt;
*[[CModel.Bounds_Reliability|cModel.Bounds_Reliability Method]]&lt;br /&gt;
*[[CModel.Bounds_MeanTime|cModel.Bounds_MeanTime Method]]&lt;br /&gt;
*[[BoundsValues Class]]&lt;/div&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
</feed>