<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.analytica.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lchrisman</id>
	<title>Analytica Docs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.analytica.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lchrisman"/>
	<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php/Special:Contributions/Lchrisman"/>
	<updated>2026-12-01T14:11:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Template:Release%3F&amp;diff=66082</id>
		<title>Template:Release?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Template:Release%3F&amp;diff=66082"/>
		<updated>2026-11-30T15:52:32Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Default to «newContent» when anarelease is unset&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{#svarget:anarelease}}|{{#if: {{#isReleaseBetween:{{{1}}}|{{#svarget:anarelease}}|99.9}}|{{{2}}}|{{{3}}}}}|{{{2}}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
===Syntax===&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{Release?|«releaseNum»|«newContent»|«oldContent»}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To use, you need to include the &amp;lt;nowiki&amp;gt;{{ReleaseBar}}&amp;lt;/nowiki&amp;gt; at the top of the page.&lt;br /&gt;
&lt;br /&gt;
Displays «newContent» when the selected release is equal to or after «releaseNum», otherwise displays «oldContent». When no release is selected (anarelease is unset), displays «newContent».&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_Enterprise&amp;diff=66081</id>
		<title>Analytica Enterprise</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_Enterprise&amp;diff=66081"/>
		<updated>2026-11-30T15:46:50Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Redirected page to Analytica Developer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Analytica Developer]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_Developer&amp;diff=66080</id>
		<title>Analytica Developer</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_Developer&amp;diff=66080"/>
		<updated>2026-11-30T15:46:26Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Removed redirect to Analytica Enterprise&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Analytica User Guide]]&lt;br /&gt;
[[Category: Analytica Enterprise]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;breadcrumbs&amp;gt;Analytica User Guide &amp;gt;Working with Large Models &amp;gt; {{PAGENAME}}&amp;lt;/breadcrumbs&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
{{ReleaseBar}} &lt;br /&gt;
&lt;br /&gt;
The {{Analytica Enterprise}} edition {{Release|7.0||(formerly known as the Analytica Enterprise edition prior to [[Analytica 7.0]])}} offers all the functionality of Analytica Professional, plus your model can: &lt;br /&gt;
* read from and write to external data sources (e.g., [[Database access|databases]], [[ReadTextFile|text]], [[ParseCSV|csv]], [[ParseJSON|JSON]], {{Release|5.0||or binary data}} files, web pages and [[ReadFromUrl|web services]])&lt;br /&gt;
* run and communicate with other applications with [[COM Integration|COM]]&lt;br /&gt;
* use [[Analytica Enterprise#Huge Arrays|Huge Arrays]] (up to 100 million elements per Index dimension)&lt;br /&gt;
* apply the [[Performance Profiler library|Performance Profiler]] to see computational effort by variable&lt;br /&gt;
* create [[Obfuscated and Browse-Only Models|Browse-only models]]&lt;br /&gt;
* [[Obfuscated and Browse-Only Models|encrypt (obfuscate)]] sensitive and confidential data or algorithms.&lt;br /&gt;
&lt;br /&gt;
You need either {{Analytica Enterprise}} or [[Analytica_Optimizer_Guide|Analytica Optimizer]] to create very large models or to integrate Analytica with external data sources and databases. You can use [[Analytica Cloud Platform|ACP]] or the [[ADE_User_Guide|Analytica Decision Engine]] to run models created with {{Analytica Enterprise}} or Optimizer with these features. You can use any edition of Analytica to run a model that uses buttons, or was saved as browse-only with hidden definitions.&lt;br /&gt;
&lt;br /&gt;
You can order or upgrade to Analytica {{Developer}} [http://www.lumina.com/shoppingcart/productorder/ here].&lt;br /&gt;
&lt;br /&gt;
==Huge Arrays==&lt;br /&gt;
&lt;br /&gt;
Free Analytica and Analytica Professional are limited to Index sizes (and Sample sizes) of 32,000 elements. {{Analytica Enterprise}} and above ([[Analytica Optimizer Guide|Optimizer]], [[Analytica Cloud Platform|ACP]]. and [[ADE User Guide|ADE]]) can manage indexes and arrays of up to two billion elements in any dimension. The only practical limit on model sizes is the memory on your computer.  It also lets you read in large datasets from databases, using the ODBC functions.&lt;br /&gt;
Huge Arrays means they can also handle sample size for probabilistic simulation up to this size. You can set this in the [[Uncertainty Setup dialog]] from the [[Result menu]].&lt;br /&gt;
===Typescript Window===&lt;br /&gt;
&lt;br /&gt;
The [[Typescript]] window offers an old-fashioned command-line user interface, like the Windows CMD program or a Unix shell, showing a prompt — the title of the model or module — at the start of each line. You can type in a [[script]] command. It prints any results as text, and show another prompt. This window is occasionally useful for advanced users who wish to inspect internal details of a model. You can also use it to test out commands that you want to use in a [[Buttons#Script_Attribute|button script]].&lt;br /&gt;
&lt;br /&gt;
To open the [[Typescript]] window, press the &#039;&#039;&#039;F12&#039;&#039;&#039; key.&lt;br /&gt;
&lt;br /&gt;
:[[File:huge_arrays_1.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Editions of Analytica]]&lt;br /&gt;
* [http://www.lumina.com/shoppingcart/productorder/ order Analytica {{Developer}}]&lt;br /&gt;
* [[Arrays and Indexes]]&lt;br /&gt;
* [[Working with Large Models]]&lt;br /&gt;
* [[Editions of Analytica]]&lt;br /&gt;
* [[Analytica Optimizer Guide]]&lt;br /&gt;
* [[ADE User Guide]]&lt;br /&gt;
* [[Typescript]]&lt;br /&gt;
* [[Analytica Script]]&lt;br /&gt;
* [[Scripting Guide]]&lt;br /&gt;
&amp;lt;footer&amp;gt;Performance Profiler library / {{PAGENAME}} / User-defined Functions and Libraries&amp;lt;/footer&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F/Patch_7.2.7&amp;diff=66071</id>
		<title>What&#039;s new in Analytica 7.2?/Patch 7.2.7</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F/Patch_7.2.7&amp;diff=66071"/>
		<updated>2026-11-23T22:53:17Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: New page: release note for 7.2.7 patch (HTTPS for installer/activation/update check; signed-update verification)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The 7.2.7 patch release, issued in November 2026, replaces the original [[What&#039;s new in Analytica 7.2?|Analytica 7.2]] release (7.2.6). It is a small housekeeping update that tightens how Analytica talks to Lumina&#039;s servers. Updating is recommended, though not urgent.&lt;br /&gt;
&lt;br /&gt;
== What&#039;s changed ==&lt;br /&gt;
* The installer, license activation and the automatic check for updates now always use encrypted (HTTPS) connections to Lumina&#039;s servers. A few of these calls previously used plain HTTP.&lt;br /&gt;
* When Analytica downloads an update for you, it now checks that the installer carries a valid Lumina Decision Systems digital signature before running it.&lt;br /&gt;
* Links from Analytica to this documentation site no longer include an unneeded parameter.&lt;br /&gt;
&lt;br /&gt;
There are no other bug fixes or enhancements in this patch. The Analytica Cloud Platform (ACP) is not affected.&lt;br /&gt;
&lt;br /&gt;
== Should I be concerned? ==&lt;br /&gt;
No. The only information sent over the unencrypted connections was the registration details you typed into the installer (name, email and organization) and license activation details. Your models and data were never sent. We have no indication that any of this traffic was ever intercepted. We found and fixed the issue ourselves as part of our regular security review.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[What&#039;s new in Analytica 7.2?]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66069</id>
		<title>Expression Syntax</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66069"/>
		<updated>2026-11-20T21:30:01Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: #r and \x are actually lower precedence than ^&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Styles and options]]&lt;br /&gt;
[[Category: Typescript Commands]]&lt;br /&gt;
[[Category: Expressions]]&lt;br /&gt;
&lt;br /&gt;
Analytica expressions are the language used for [[Definition]] attributes of a variable or [[User-Defined_Functions|Function]]. Expressions are also used in the [[Check]], [[OnClick]], and [[OnChange]] Attributes.&lt;br /&gt;
&lt;br /&gt;
== Function Calls ==&lt;br /&gt;
You can call [[Alphabetical_Function_List | built-in functions]] and [[User-Defined Functions]] using standard &#039;&#039;position-based&#039;&#039; syntax, in which you specify the parameters (or arguments) in sequence between parentheses:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(0, B, True)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each actual parameter, &amp;lt;code&amp;gt;5, B&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; in this example, may be a number, variable, array, or or other expression, depending on the type of parameter expected. In this case, the function [[Uniform]] expects parameters («min», «max», «integer»).&lt;br /&gt;
&lt;br /&gt;
You can also specify some or all parameters using a &#039;&#039;name-based&#039;&#039; syntax, in which you specify a parameter by name, followed by &amp;quot;:&amp;quot; and the value to be called, for example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(min: 1, max: 100, integer: True)&amp;lt;/code&amp;gt; -- same parameter positions as normal&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(integer: True, min: 1, max: 100)&amp;lt;/code&amp;gt; -- a different sequence is fine with named parameter&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(1, 100, integer: true)&amp;lt;/code&amp;gt; -- mixed syntax: initial parameters are position based, last is by name.&lt;br /&gt;
&lt;br /&gt;
With names, you can list the parameters in any order, as in the second example.  Using mixed syntax, you can specify initial parameters by position, followed by one or more parameters identified by name. This is especially useful when calling a function with one or a few required initial parameters followed by multiple optional parameters of which you only want to specify a few.&lt;br /&gt;
&lt;br /&gt;
Some parameters expect an index (or variable), in which case you must provide the identifier of an Index (or other variable).  You can specify an index using the [[Dot_operator::A.I#Dot_Operator:_A.I|dot-operator]] syntax -- e.g. &amp;lt;code&amp;gt;A.I&amp;lt;/code&amp;gt;.  In these cases, you may not use arbitrary expressions, including function calls, as the value.  &lt;br /&gt;
&lt;br /&gt;
There are many other expectations or restrictions on parameters and how they get evaluated (or not), specified by [[Function Parameter Qualifiers|parameter qualifiers]] and on the [[Evaluation Modes|evaluation mode]] when the function is evaluated. You can see these qualifiers in the documentation, or in the Object view for each Function. You can also specify them yourself in [[User-defined functions]] that you define yourself.&lt;br /&gt;
&lt;br /&gt;
== Array subscripting ==&lt;br /&gt;
&lt;br /&gt;
Analytica is unusual among computer languages in using &#039;&#039;&#039;Named Index subscripting&#039;&#039;, meaning that you specify which index to subscript in an array by naming the index, rather than by some sequence of indexes.  For example, suppose array &amp;lt;code&amp;gt;Population&amp;lt;/code&amp;gt; is indexed by &amp;lt;code&amp;gt;Year&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;State&amp;lt;/code&amp;gt;, you can get the population of New York in 2010 as:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010, State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or equivalently:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Named Index subscripting&#039;&#039;&#039; has big advantages  for multidimensional arrays over conventional positional indexing, which is what most other computer languages use. First, you don&#039;t have to remember which is index is &amp;quot;inner&amp;quot; or &amp;quot;outer&amp;quot;. In fact, those concepts are usually irrelevant in Analytica.  Second,  you can slice out a subarray, e.g.&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of New York for every value of Year. Or:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of all states for 2010. &lt;br /&gt;
&lt;br /&gt;
As you develop a model and add, or remove detail, the number of dimensions in an array may change.  Sometimes, as in parametric analysis where you replace a single input value by a list of alternative values, the number of dimensions may change even as you run a model.  Accessing Indexes by name is much more robust -- it won&#039;t break if an array gets an extra dimension, as would standard positional indexing.&lt;br /&gt;
&lt;br /&gt;
Analytica simply ignores a subscript using by an index that the array doesn&#039;t contain:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010, Month = &amp;quot;February&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
just returns the population for New York in 2010. It implicitly assumes the population is the same for every month of that year. This is an important general Principle -- &#039;&#039;&#039;Constant over Irrelevant Indexes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you subscript an array using a value that&#039;s not in that Index, it will usually flag an error and return [[Null]]:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;]   &amp;amp;rarr; NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can specify an alternative value to return for an invalid index value:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;, defValue: 0]  &amp;amp;rarr; 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Operator Precedence ==&lt;br /&gt;
Analytica uses a fairly standard precedence for arithmetic and logical operators. Exponentiation (^) binds more tightly than multiplication (*) and division (/), which binds more tightly than addition (+) and subtraction (-).  Thus, this expression&lt;br /&gt;
:&amp;lt;code&amp;gt;1/2*3 - 4/5^6 + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would parse as&lt;br /&gt;
:&amp;lt;code&amp;gt;((1/2)*3) - (4/(5^6)) + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This list shows the binding precedence of Analytica operators, with the highest precedence operators first.  Operators in the same bullet have the same level of precedence:&lt;br /&gt;
&lt;br /&gt;
* Parentheses: ( ... )&lt;br /&gt;
* Function calls&lt;br /&gt;
* [[Dot_operator::A.I|A.I]]&lt;br /&gt;
* [[COM Integration#methodSyntax|A-&amp;gt;method()]], [[COM Integration#propertySyntax|A-&amp;gt;propetry]]&lt;br /&gt;
* [[Logical Operators#Not|Not]]&lt;br /&gt;
* [[Subscript/Slice Operator | A[I=x] ]]&lt;br /&gt;
* [[Index_Position_Operator::%40 | @I ]], [[Reference_Operator::%5C | \A]]&lt;br /&gt;
* [[Attrib of Obj]]&lt;br /&gt;
* ^ &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(left-associative)&lt;br /&gt;
* [[Reference_Operator::%5C | \[I]A]], [[Dereference Operator|#R]].&lt;br /&gt;
* - (unary)&lt;br /&gt;
* *, /&lt;br /&gt;
* +, - (binary minus)&lt;br /&gt;
* [[Sequence Operator|m..n]]&lt;br /&gt;
* [[Comparison Operators|=, &amp;lt;=, &amp;gt;=, &amp;lt;, &amp;gt;, &amp;lt;&amp;gt;]]&lt;br /&gt;
* [[Logical Operators#And|And]]&lt;br /&gt;
* [[Logical Operators#Or|Or]]&lt;br /&gt;
&lt;br /&gt;
* [[Text_Concatenation_Operator:_%26 | &amp;amp;]]&lt;br /&gt;
* [[Assignment_Operator::_::%3D | :=]]&lt;br /&gt;
* [[If-Then-Else|If..Then..Else]], [[Ifall-Then-Else|Ifall..Then..Else]], [[Ifonly-Then-Else|IfOnly..Then..Else]], [[While..Do]], [[Local..Do]], [[Var..Do]], [[LocalAlias..Do]], [[For..Do]]&lt;br /&gt;
* sequence of statements (;), comma separation of elements or parameters (,)&lt;br /&gt;
&lt;br /&gt;
Note: Exponentiation follows the Excel and MATLAB convention where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= (2^3)^4&amp;lt;/math&amp;gt;, which differs from most other programming languages that use right-associative exponentiation where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= 2^{(3^4)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
Comments can be embedded anywhere whitespace would be allowed within an expression.  There are two ways to specify comments:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;{ This is a comment }&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/* This is a comment */&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you start a comment with &amp;quot;{&amp;quot;, your comment cannot contain the &amp;quot;}&amp;quot; character.  Similarly, if you start a comment with &amp;quot;/*&amp;quot;, it musn&#039;t contain the two character sequence &amp;quot;*/&amp;quot;.  If you want to nest comments, for example to temporarily comment out some code that already contains comments, use &amp;lt;code&amp;gt;{...}&amp;lt;/code&amp;gt; for the inner comment and &amp;lt;code&amp;gt;/*...*/&amp;lt;/code&amp;gt; for the outer comment, or vice versa. &lt;br /&gt;
&lt;br /&gt;
=== Version Gated Comments ===&lt;br /&gt;
A version-gated comment contains code that Analytica ignores as a comment in some releases of Analytica, but treats as meaningful code in other releases  For example, suppose you have an algorithm that uses features new in Analytica 5.0, but you still want it to work with Analytica 4.6, perhaps falling back to a less efficient algorithm or to reduced functionality.  A version-gated comment lets you do this without risk of parse errors in the version that might not recognize the newer features.&lt;br /&gt;
&lt;br /&gt;
Consider these equivalent forms of version gated comments:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica release 5.00.00 or after will interpret the expression, but prior releases will ignore it as a comment.  &lt;br /&gt;
&lt;br /&gt;
This gated comment executes the expression in releases 5.00.00 through 5.01.00, but releases before and after will treat it as a comment:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-50100|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This version interprets the expression in any release from 4.0 up to 5.02.00, but any release thereafter treats it as a comment:   &lt;br /&gt;
:&amp;lt;code&amp;gt;{!-50200|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to accomplish the same thing is to use the [[AnalyticaVersion]] system variable in an expression.&lt;br /&gt;
:&amp;lt;code&amp;gt;[[If]] [[AnalyticaVersion]]&amp;gt;=50000 [[Then]] «expression1» [[Else]] «expression2»&amp;lt;/code&amp;gt;&lt;br /&gt;
But, if either expression uses a function that doesn&#039;t exist in the earlier release, then the expression won&#039;t parse, in which case you need to use a gated comment.&lt;br /&gt;
&lt;br /&gt;
== Script syntax ==&lt;br /&gt;
The obsolete [[Script]] attribute uses  [[Scripting|Typescript]], which has a slightly different syntax from Analytica Expressions (see also [[:Category:Typescript_Commands|Typescript Commands]]). The Script attribute was replaced by [[OnClick]] and [[OnChange]] attributes in [[Analytica 4.6]] release, and is retained only for backward compatibility.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
* All version-gated comments are treated as comment in Analytica release 3.1 and earlier, regardless of what the version number indicates, since the version-gated comment feature was not introduced until Analyica 4.0.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Expressions]]&lt;br /&gt;
* [[Expression Assist]]&lt;br /&gt;
* [[The Expression popup menu]]&lt;br /&gt;
* [[Parsed Expressions]]&lt;br /&gt;
* [[Expressions that don&#039;t array-abstract]]&lt;br /&gt;
* [[Definitions]]&lt;br /&gt;
* [[User-Defined Functions]] &lt;br /&gt;
* [[Function calls and parameters]]&lt;br /&gt;
* [[:Category:Typescript_Commands|Typescript Commands]]&lt;br /&gt;
* [[AnalyticaVersion]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66068</id>
		<title>Expression Syntax</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66068"/>
		<updated>2026-11-20T21:26:42Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: A.I, A-&amp;gt;x actually have higher precedence than Not A&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Styles and options]]&lt;br /&gt;
[[Category: Typescript Commands]]&lt;br /&gt;
[[Category: Expressions]]&lt;br /&gt;
&lt;br /&gt;
Analytica expressions are the language used for [[Definition]] attributes of a variable or [[User-Defined_Functions|Function]]. Expressions are also used in the [[Check]], [[OnClick]], and [[OnChange]] Attributes.&lt;br /&gt;
&lt;br /&gt;
== Function Calls ==&lt;br /&gt;
You can call [[Alphabetical_Function_List | built-in functions]] and [[User-Defined Functions]] using standard &#039;&#039;position-based&#039;&#039; syntax, in which you specify the parameters (or arguments) in sequence between parentheses:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(0, B, True)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each actual parameter, &amp;lt;code&amp;gt;5, B&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; in this example, may be a number, variable, array, or or other expression, depending on the type of parameter expected. In this case, the function [[Uniform]] expects parameters («min», «max», «integer»).&lt;br /&gt;
&lt;br /&gt;
You can also specify some or all parameters using a &#039;&#039;name-based&#039;&#039; syntax, in which you specify a parameter by name, followed by &amp;quot;:&amp;quot; and the value to be called, for example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(min: 1, max: 100, integer: True)&amp;lt;/code&amp;gt; -- same parameter positions as normal&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(integer: True, min: 1, max: 100)&amp;lt;/code&amp;gt; -- a different sequence is fine with named parameter&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(1, 100, integer: true)&amp;lt;/code&amp;gt; -- mixed syntax: initial parameters are position based, last is by name.&lt;br /&gt;
&lt;br /&gt;
With names, you can list the parameters in any order, as in the second example.  Using mixed syntax, you can specify initial parameters by position, followed by one or more parameters identified by name. This is especially useful when calling a function with one or a few required initial parameters followed by multiple optional parameters of which you only want to specify a few.&lt;br /&gt;
&lt;br /&gt;
Some parameters expect an index (or variable), in which case you must provide the identifier of an Index (or other variable).  You can specify an index using the [[Dot_operator::A.I#Dot_Operator:_A.I|dot-operator]] syntax -- e.g. &amp;lt;code&amp;gt;A.I&amp;lt;/code&amp;gt;.  In these cases, you may not use arbitrary expressions, including function calls, as the value.  &lt;br /&gt;
&lt;br /&gt;
There are many other expectations or restrictions on parameters and how they get evaluated (or not), specified by [[Function Parameter Qualifiers|parameter qualifiers]] and on the [[Evaluation Modes|evaluation mode]] when the function is evaluated. You can see these qualifiers in the documentation, or in the Object view for each Function. You can also specify them yourself in [[User-defined functions]] that you define yourself.&lt;br /&gt;
&lt;br /&gt;
== Array subscripting ==&lt;br /&gt;
&lt;br /&gt;
Analytica is unusual among computer languages in using &#039;&#039;&#039;Named Index subscripting&#039;&#039;, meaning that you specify which index to subscript in an array by naming the index, rather than by some sequence of indexes.  For example, suppose array &amp;lt;code&amp;gt;Population&amp;lt;/code&amp;gt; is indexed by &amp;lt;code&amp;gt;Year&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;State&amp;lt;/code&amp;gt;, you can get the population of New York in 2010 as:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010, State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or equivalently:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Named Index subscripting&#039;&#039;&#039; has big advantages  for multidimensional arrays over conventional positional indexing, which is what most other computer languages use. First, you don&#039;t have to remember which is index is &amp;quot;inner&amp;quot; or &amp;quot;outer&amp;quot;. In fact, those concepts are usually irrelevant in Analytica.  Second,  you can slice out a subarray, e.g.&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of New York for every value of Year. Or:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of all states for 2010. &lt;br /&gt;
&lt;br /&gt;
As you develop a model and add, or remove detail, the number of dimensions in an array may change.  Sometimes, as in parametric analysis where you replace a single input value by a list of alternative values, the number of dimensions may change even as you run a model.  Accessing Indexes by name is much more robust -- it won&#039;t break if an array gets an extra dimension, as would standard positional indexing.&lt;br /&gt;
&lt;br /&gt;
Analytica simply ignores a subscript using by an index that the array doesn&#039;t contain:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010, Month = &amp;quot;February&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
just returns the population for New York in 2010. It implicitly assumes the population is the same for every month of that year. This is an important general Principle -- &#039;&#039;&#039;Constant over Irrelevant Indexes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you subscript an array using a value that&#039;s not in that Index, it will usually flag an error and return [[Null]]:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;]   &amp;amp;rarr; NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can specify an alternative value to return for an invalid index value:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;, defValue: 0]  &amp;amp;rarr; 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Operator Precedence ==&lt;br /&gt;
Analytica uses a fairly standard precedence for arithmetic and logical operators. Exponentiation (^) binds more tightly than multiplication (*) and division (/), which binds more tightly than addition (+) and subtraction (-).  Thus, this expression&lt;br /&gt;
:&amp;lt;code&amp;gt;1/2*3 - 4/5^6 + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would parse as&lt;br /&gt;
:&amp;lt;code&amp;gt;((1/2)*3) - (4/(5^6)) + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This list shows the binding precedence of Analytica operators, with the highest precedence operators first.  Operators in the same bullet have the same level of precedence:&lt;br /&gt;
&lt;br /&gt;
* Parentheses: ( ... )&lt;br /&gt;
* Function calls&lt;br /&gt;
* [[Dot_operator::A.I|A.I]]&lt;br /&gt;
* [[COM Integration#methodSyntax|A-&amp;gt;method()]], [[COM Integration#propertySyntax|A-&amp;gt;propetry]]&lt;br /&gt;
* [[Logical Operators#Not|Not]]&lt;br /&gt;
* [[Subscript/Slice Operator | A[I=x] ]]&lt;br /&gt;
* [[Index_Position_Operator::%40 | @I ]], [[Reference_Operator::%5C | \A]], [[Reference_Operator::%5C | \[I]A]], [[Dereference Operator|#R]].&lt;br /&gt;
* [[Attrib of Obj]]&lt;br /&gt;
* ^ &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(left-associative)&lt;br /&gt;
* - (unary)&lt;br /&gt;
* *, /&lt;br /&gt;
* +, - (binary minus)&lt;br /&gt;
* [[Sequence Operator|m..n]]&lt;br /&gt;
* [[Comparison Operators|=, &amp;lt;=, &amp;gt;=, &amp;lt;, &amp;gt;, &amp;lt;&amp;gt;]]&lt;br /&gt;
* [[Logical Operators#And|And]]&lt;br /&gt;
* [[Logical Operators#Or|Or]]&lt;br /&gt;
&lt;br /&gt;
* [[Text_Concatenation_Operator:_%26 | &amp;amp;]]&lt;br /&gt;
* [[Assignment_Operator::_::%3D | :=]]&lt;br /&gt;
* [[If-Then-Else|If..Then..Else]], [[Ifall-Then-Else|Ifall..Then..Else]], [[Ifonly-Then-Else|IfOnly..Then..Else]], [[While..Do]], [[Local..Do]], [[Var..Do]], [[LocalAlias..Do]], [[For..Do]]&lt;br /&gt;
* sequence of statements (;), comma separation of elements or parameters (,)&lt;br /&gt;
&lt;br /&gt;
Note: Exponentiation follows the Excel and MATLAB convention where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= (2^3)^4&amp;lt;/math&amp;gt;, which differs from most other programming languages that use right-associative exponentiation where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= 2^{(3^4)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
Comments can be embedded anywhere whitespace would be allowed within an expression.  There are two ways to specify comments:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;{ This is a comment }&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/* This is a comment */&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you start a comment with &amp;quot;{&amp;quot;, your comment cannot contain the &amp;quot;}&amp;quot; character.  Similarly, if you start a comment with &amp;quot;/*&amp;quot;, it musn&#039;t contain the two character sequence &amp;quot;*/&amp;quot;.  If you want to nest comments, for example to temporarily comment out some code that already contains comments, use &amp;lt;code&amp;gt;{...}&amp;lt;/code&amp;gt; for the inner comment and &amp;lt;code&amp;gt;/*...*/&amp;lt;/code&amp;gt; for the outer comment, or vice versa. &lt;br /&gt;
&lt;br /&gt;
=== Version Gated Comments ===&lt;br /&gt;
A version-gated comment contains code that Analytica ignores as a comment in some releases of Analytica, but treats as meaningful code in other releases  For example, suppose you have an algorithm that uses features new in Analytica 5.0, but you still want it to work with Analytica 4.6, perhaps falling back to a less efficient algorithm or to reduced functionality.  A version-gated comment lets you do this without risk of parse errors in the version that might not recognize the newer features.&lt;br /&gt;
&lt;br /&gt;
Consider these equivalent forms of version gated comments:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica release 5.00.00 or after will interpret the expression, but prior releases will ignore it as a comment.  &lt;br /&gt;
&lt;br /&gt;
This gated comment executes the expression in releases 5.00.00 through 5.01.00, but releases before and after will treat it as a comment:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-50100|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This version interprets the expression in any release from 4.0 up to 5.02.00, but any release thereafter treats it as a comment:   &lt;br /&gt;
:&amp;lt;code&amp;gt;{!-50200|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to accomplish the same thing is to use the [[AnalyticaVersion]] system variable in an expression.&lt;br /&gt;
:&amp;lt;code&amp;gt;[[If]] [[AnalyticaVersion]]&amp;gt;=50000 [[Then]] «expression1» [[Else]] «expression2»&amp;lt;/code&amp;gt;&lt;br /&gt;
But, if either expression uses a function that doesn&#039;t exist in the earlier release, then the expression won&#039;t parse, in which case you need to use a gated comment.&lt;br /&gt;
&lt;br /&gt;
== Script syntax ==&lt;br /&gt;
The obsolete [[Script]] attribute uses  [[Scripting|Typescript]], which has a slightly different syntax from Analytica Expressions (see also [[:Category:Typescript_Commands|Typescript Commands]]). The Script attribute was replaced by [[OnClick]] and [[OnChange]] attributes in [[Analytica 4.6]] release, and is retained only for backward compatibility.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
* All version-gated comments are treated as comment in Analytica release 3.1 and earlier, regardless of what the version number indicates, since the version-gated comment feature was not introduced until Analyica 4.0.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Expressions]]&lt;br /&gt;
* [[Expression Assist]]&lt;br /&gt;
* [[The Expression popup menu]]&lt;br /&gt;
* [[Parsed Expressions]]&lt;br /&gt;
* [[Expressions that don&#039;t array-abstract]]&lt;br /&gt;
* [[Definitions]]&lt;br /&gt;
* [[User-Defined Functions]] &lt;br /&gt;
* [[Function calls and parameters]]&lt;br /&gt;
* [[:Category:Typescript_Commands|Typescript Commands]]&lt;br /&gt;
* [[AnalyticaVersion]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66067</id>
		<title>Expression Syntax</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66067"/>
		<updated>2026-11-20T19:16:28Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: /* Operator Precedence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Styles and options]]&lt;br /&gt;
[[Category: Typescript Commands]]&lt;br /&gt;
[[Category: Expressions]]&lt;br /&gt;
&lt;br /&gt;
Analytica expressions are the language used for [[Definition]] attributes of a variable or [[User-Defined_Functions|Function]]. Expressions are also used in the [[Check]], [[OnClick]], and [[OnChange]] Attributes.&lt;br /&gt;
&lt;br /&gt;
== Function Calls ==&lt;br /&gt;
You can call [[Alphabetical_Function_List | built-in functions]] and [[User-Defined Functions]] using standard &#039;&#039;position-based&#039;&#039; syntax, in which you specify the parameters (or arguments) in sequence between parentheses:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(0, B, True)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each actual parameter, &amp;lt;code&amp;gt;5, B&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; in this example, may be a number, variable, array, or or other expression, depending on the type of parameter expected. In this case, the function [[Uniform]] expects parameters («min», «max», «integer»).&lt;br /&gt;
&lt;br /&gt;
You can also specify some or all parameters using a &#039;&#039;name-based&#039;&#039; syntax, in which you specify a parameter by name, followed by &amp;quot;:&amp;quot; and the value to be called, for example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(min: 1, max: 100, integer: True)&amp;lt;/code&amp;gt; -- same parameter positions as normal&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(integer: True, min: 1, max: 100)&amp;lt;/code&amp;gt; -- a different sequence is fine with named parameter&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(1, 100, integer: true)&amp;lt;/code&amp;gt; -- mixed syntax: initial parameters are position based, last is by name.&lt;br /&gt;
&lt;br /&gt;
With names, you can list the parameters in any order, as in the second example.  Using mixed syntax, you can specify initial parameters by position, followed by one or more parameters identified by name. This is especially useful when calling a function with one or a few required initial parameters followed by multiple optional parameters of which you only want to specify a few.&lt;br /&gt;
&lt;br /&gt;
Some parameters expect an index (or variable), in which case you must provide the identifier of an Index (or other variable).  You can specify an index using the [[Dot_operator::A.I#Dot_Operator:_A.I|dot-operator]] syntax -- e.g. &amp;lt;code&amp;gt;A.I&amp;lt;/code&amp;gt;.  In these cases, you may not use arbitrary expressions, including function calls, as the value.  &lt;br /&gt;
&lt;br /&gt;
There are many other expectations or restrictions on parameters and how they get evaluated (or not), specified by [[Function Parameter Qualifiers|parameter qualifiers]] and on the [[Evaluation Modes|evaluation mode]] when the function is evaluated. You can see these qualifiers in the documentation, or in the Object view for each Function. You can also specify them yourself in [[User-defined functions]] that you define yourself.&lt;br /&gt;
&lt;br /&gt;
== Array subscripting ==&lt;br /&gt;
&lt;br /&gt;
Analytica is unusual among computer languages in using &#039;&#039;&#039;Named Index subscripting&#039;&#039;, meaning that you specify which index to subscript in an array by naming the index, rather than by some sequence of indexes.  For example, suppose array &amp;lt;code&amp;gt;Population&amp;lt;/code&amp;gt; is indexed by &amp;lt;code&amp;gt;Year&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;State&amp;lt;/code&amp;gt;, you can get the population of New York in 2010 as:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010, State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or equivalently:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Named Index subscripting&#039;&#039;&#039; has big advantages  for multidimensional arrays over conventional positional indexing, which is what most other computer languages use. First, you don&#039;t have to remember which is index is &amp;quot;inner&amp;quot; or &amp;quot;outer&amp;quot;. In fact, those concepts are usually irrelevant in Analytica.  Second,  you can slice out a subarray, e.g.&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of New York for every value of Year. Or:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of all states for 2010. &lt;br /&gt;
&lt;br /&gt;
As you develop a model and add, or remove detail, the number of dimensions in an array may change.  Sometimes, as in parametric analysis where you replace a single input value by a list of alternative values, the number of dimensions may change even as you run a model.  Accessing Indexes by name is much more robust -- it won&#039;t break if an array gets an extra dimension, as would standard positional indexing.&lt;br /&gt;
&lt;br /&gt;
Analytica simply ignores a subscript using by an index that the array doesn&#039;t contain:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010, Month = &amp;quot;February&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
just returns the population for New York in 2010. It implicitly assumes the population is the same for every month of that year. This is an important general Principle -- &#039;&#039;&#039;Constant over Irrelevant Indexes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you subscript an array using a value that&#039;s not in that Index, it will usually flag an error and return [[Null]]:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;]   &amp;amp;rarr; NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can specify an alternative value to return for an invalid index value:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;, defValue: 0]  &amp;amp;rarr; 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Operator Precedence ==&lt;br /&gt;
Analytica uses a fairly standard precedence for arithmetic and logical operators. Exponentiation (^) binds more tightly than multiplication (*) and division (/), which binds more tightly than addition (+) and subtraction (-).  Thus, this expression&lt;br /&gt;
:&amp;lt;code&amp;gt;1/2*3 - 4/5^6 + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would parse as&lt;br /&gt;
:&amp;lt;code&amp;gt;((1/2)*3) - (4/(5^6)) + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This list shows the binding precedence of Analytica operators, with the highest precedence operators first.  Operators in the same bullet have the same level of precedence:&lt;br /&gt;
&lt;br /&gt;
* Parentheses: ( ... )&lt;br /&gt;
* Function calls&lt;br /&gt;
* [[Logical Operators#Not|Not]]&lt;br /&gt;
* [[Dot_operator::A.I|A.I]]&lt;br /&gt;
* [[COM Integration#methodSyntax|A-&amp;gt;method()]], [[COM Integration#propertySyntax|A-&amp;gt;propetry]]&lt;br /&gt;
* [[Subscript/Slice Operator | A[I=x] ]]&lt;br /&gt;
* [[Index_Position_Operator::%40 | @I ]], [[Reference_Operator::%5C | \A]], [[Reference_Operator::%5C | \[I]A]], [[Dereference Operator|#R]].&lt;br /&gt;
* [[Attrib of Obj]]&lt;br /&gt;
* ^ &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(left-associative)&lt;br /&gt;
* - (unary)&lt;br /&gt;
* *, /&lt;br /&gt;
* +, - (binary minus)&lt;br /&gt;
* [[Sequence Operator|m..n]]&lt;br /&gt;
* [[Comparison Operators|=, &amp;lt;=, &amp;gt;=, &amp;lt;, &amp;gt;, &amp;lt;&amp;gt;]]&lt;br /&gt;
* [[Logical Operators#And|And]]&lt;br /&gt;
* [[Logical Operators#Or|Or]]&lt;br /&gt;
&lt;br /&gt;
* [[Text_Concatenation_Operator:_%26 | &amp;amp;]]&lt;br /&gt;
* [[Assignment_Operator::_::%3D | :=]]&lt;br /&gt;
* [[If-Then-Else|If..Then..Else]], [[Ifall-Then-Else|Ifall..Then..Else]], [[Ifonly-Then-Else|IfOnly..Then..Else]], [[While..Do]], [[Local..Do]], [[Var..Do]], [[LocalAlias..Do]], [[For..Do]]&lt;br /&gt;
* sequence of statements (;), comma separation of elements or parameters (,)&lt;br /&gt;
&lt;br /&gt;
Note: Exponentiation follows the Excel and MATLAB convention where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= (2^3)^4&amp;lt;/math&amp;gt;, which differs from most other programming languages that use right-associative exponentiation where &amp;lt;code&amp;gt;2^3^4&amp;lt;/code&amp;gt;&amp;lt;math&amp;gt;= 2^{(3^4)}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
Comments can be embedded anywhere whitespace would be allowed within an expression.  There are two ways to specify comments:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;{ This is a comment }&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/* This is a comment */&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you start a comment with &amp;quot;{&amp;quot;, your comment cannot contain the &amp;quot;}&amp;quot; character.  Similarly, if you start a comment with &amp;quot;/*&amp;quot;, it musn&#039;t contain the two character sequence &amp;quot;*/&amp;quot;.  If you want to nest comments, for example to temporarily comment out some code that already contains comments, use &amp;lt;code&amp;gt;{...}&amp;lt;/code&amp;gt; for the inner comment and &amp;lt;code&amp;gt;/*...*/&amp;lt;/code&amp;gt; for the outer comment, or vice versa. &lt;br /&gt;
&lt;br /&gt;
=== Version Gated Comments ===&lt;br /&gt;
A version-gated comment contains code that Analytica ignores as a comment in some releases of Analytica, but treats as meaningful code in other releases  For example, suppose you have an algorithm that uses features new in Analytica 5.0, but you still want it to work with Analytica 4.6, perhaps falling back to a less efficient algorithm or to reduced functionality.  A version-gated comment lets you do this without risk of parse errors in the version that might not recognize the newer features.&lt;br /&gt;
&lt;br /&gt;
Consider these equivalent forms of version gated comments:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica release 5.00.00 or after will interpret the expression, but prior releases will ignore it as a comment.  &lt;br /&gt;
&lt;br /&gt;
This gated comment executes the expression in releases 5.00.00 through 5.01.00, but releases before and after will treat it as a comment:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-50100|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This version interprets the expression in any release from 4.0 up to 5.02.00, but any release thereafter treats it as a comment:   &lt;br /&gt;
:&amp;lt;code&amp;gt;{!-50200|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to accomplish the same thing is to use the [[AnalyticaVersion]] system variable in an expression.&lt;br /&gt;
:&amp;lt;code&amp;gt;[[If]] [[AnalyticaVersion]]&amp;gt;=50000 [[Then]] «expression1» [[Else]] «expression2»&amp;lt;/code&amp;gt;&lt;br /&gt;
But, if either expression uses a function that doesn&#039;t exist in the earlier release, then the expression won&#039;t parse, in which case you need to use a gated comment.&lt;br /&gt;
&lt;br /&gt;
== Script syntax ==&lt;br /&gt;
The obsolete [[Script]] attribute uses  [[Scripting|Typescript]], which has a slightly different syntax from Analytica Expressions (see also [[:Category:Typescript_Commands|Typescript Commands]]). The Script attribute was replaced by [[OnClick]] and [[OnChange]] attributes in [[Analytica 4.6]] release, and is retained only for backward compatibility.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
* All version-gated comments are treated as comment in Analytica release 3.1 and earlier, regardless of what the version number indicates, since the version-gated comment feature was not introduced until Analyica 4.0.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Expressions]]&lt;br /&gt;
* [[Expression Assist]]&lt;br /&gt;
* [[The Expression popup menu]]&lt;br /&gt;
* [[Parsed Expressions]]&lt;br /&gt;
* [[Expressions that don&#039;t array-abstract]]&lt;br /&gt;
* [[Definitions]]&lt;br /&gt;
* [[User-Defined Functions]] &lt;br /&gt;
* [[Function calls and parameters]]&lt;br /&gt;
* [[:Category:Typescript_Commands|Typescript Commands]]&lt;br /&gt;
* [[AnalyticaVersion]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66066</id>
		<title>Expression Syntax</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Expression_Syntax&amp;diff=66066"/>
		<updated>2026-11-20T19:13:15Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: /* Operator Precedence */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Styles and options]]&lt;br /&gt;
[[Category: Typescript Commands]]&lt;br /&gt;
[[Category: Expressions]]&lt;br /&gt;
&lt;br /&gt;
Analytica expressions are the language used for [[Definition]] attributes of a variable or [[User-Defined_Functions|Function]]. Expressions are also used in the [[Check]], [[OnClick]], and [[OnChange]] Attributes.&lt;br /&gt;
&lt;br /&gt;
== Function Calls ==&lt;br /&gt;
You can call [[Alphabetical_Function_List | built-in functions]] and [[User-Defined Functions]] using standard &#039;&#039;position-based&#039;&#039; syntax, in which you specify the parameters (or arguments) in sequence between parentheses:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(0, B, True)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each actual parameter, &amp;lt;code&amp;gt;5, B&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; in this example, may be a number, variable, array, or or other expression, depending on the type of parameter expected. In this case, the function [[Uniform]] expects parameters («min», «max», «integer»).&lt;br /&gt;
&lt;br /&gt;
You can also specify some or all parameters using a &#039;&#039;name-based&#039;&#039; syntax, in which you specify a parameter by name, followed by &amp;quot;:&amp;quot; and the value to be called, for example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(min: 1, max: 100, integer: True)&amp;lt;/code&amp;gt; -- same parameter positions as normal&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(integer: True, min: 1, max: 100)&amp;lt;/code&amp;gt; -- a different sequence is fine with named parameter&lt;br /&gt;
:&amp;lt;code&amp;gt;Uniform(1, 100, integer: true)&amp;lt;/code&amp;gt; -- mixed syntax: initial parameters are position based, last is by name.&lt;br /&gt;
&lt;br /&gt;
With names, you can list the parameters in any order, as in the second example.  Using mixed syntax, you can specify initial parameters by position, followed by one or more parameters identified by name. This is especially useful when calling a function with one or a few required initial parameters followed by multiple optional parameters of which you only want to specify a few.&lt;br /&gt;
&lt;br /&gt;
Some parameters expect an index (or variable), in which case you must provide the identifier of an Index (or other variable).  You can specify an index using the [[Dot_operator::A.I#Dot_Operator:_A.I|dot-operator]] syntax -- e.g. &amp;lt;code&amp;gt;A.I&amp;lt;/code&amp;gt;.  In these cases, you may not use arbitrary expressions, including function calls, as the value.  &lt;br /&gt;
&lt;br /&gt;
There are many other expectations or restrictions on parameters and how they get evaluated (or not), specified by [[Function Parameter Qualifiers|parameter qualifiers]] and on the [[Evaluation Modes|evaluation mode]] when the function is evaluated. You can see these qualifiers in the documentation, or in the Object view for each Function. You can also specify them yourself in [[User-defined functions]] that you define yourself.&lt;br /&gt;
&lt;br /&gt;
== Array subscripting ==&lt;br /&gt;
&lt;br /&gt;
Analytica is unusual among computer languages in using &#039;&#039;&#039;Named Index subscripting&#039;&#039;, meaning that you specify which index to subscript in an array by naming the index, rather than by some sequence of indexes.  For example, suppose array &amp;lt;code&amp;gt;Population&amp;lt;/code&amp;gt; is indexed by &amp;lt;code&amp;gt;Year&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;State&amp;lt;/code&amp;gt;, you can get the population of New York in 2010 as:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010, State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or equivalently:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Named Index subscripting&#039;&#039;&#039; has big advantages  for multidimensional arrays over conventional positional indexing, which is what most other computer languages use. First, you don&#039;t have to remember which is index is &amp;quot;inner&amp;quot; or &amp;quot;outer&amp;quot;. In fact, those concepts are usually irrelevant in Analytica.  Second,  you can slice out a subarray, e.g.&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of New York for every value of Year. Or:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[Year = 2010]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
gives the population of all states for 2010. &lt;br /&gt;
&lt;br /&gt;
As you develop a model and add, or remove detail, the number of dimensions in an array may change.  Sometimes, as in parametric analysis where you replace a single input value by a list of alternative values, the number of dimensions may change even as you run a model.  Accessing Indexes by name is much more robust -- it won&#039;t break if an array gets an extra dimension, as would standard positional indexing.&lt;br /&gt;
&lt;br /&gt;
Analytica simply ignores a subscript using by an index that the array doesn&#039;t contain:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;New York&amp;quot;, Year = 2010, Month = &amp;quot;February&amp;quot;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
just returns the population for New York in 2010. It implicitly assumes the population is the same for every month of that year. This is an important general Principle -- &#039;&#039;&#039;Constant over Irrelevant Indexes&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you subscript an array using a value that&#039;s not in that Index, it will usually flag an error and return [[Null]]:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;]   &amp;amp;rarr; NULL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can specify an alternative value to return for an invalid index value:&lt;br /&gt;
:&amp;lt;code&amp;gt;Population[State = &amp;quot;Quebec&amp;quot;, defValue: 0]  &amp;amp;rarr; 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Operator Precedence ==&lt;br /&gt;
Analytica uses a fairly standard precedence for arithmetic and logical operators. Exponentiation (^) binds more tightly than multiplication (*) and division (/), which binds more tightly than addition (+) and subtraction (-).  Thus, this expression&lt;br /&gt;
:&amp;lt;code&amp;gt;1/2*3 - 4/5^6 + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would parse as&lt;br /&gt;
:&amp;lt;code&amp;gt;((1/2)*3) - (4/(5^6)) + 7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This list shows the binding precedence of Analytica operators, with the highest precedence operators first.  Operators in the same bullet have the same level of precedence:&lt;br /&gt;
&lt;br /&gt;
* Parentheses: ( ... )&lt;br /&gt;
* Function calls&lt;br /&gt;
* [[Logical Operators#Not|Not]]&lt;br /&gt;
* [[Dot_operator::A.I|A.I]]&lt;br /&gt;
* [[COM Integration#methodSyntax|A-&amp;gt;method()]], [[COM Integration#propertySyntax|A-&amp;gt;propetry]]&lt;br /&gt;
* [[Subscript/Slice Operator | A[I=x] ]]&lt;br /&gt;
* [[Index_Position_Operator::%40 | @I ]], [[Reference_Operator::%5C | \A]], [[Reference_Operator::%5C | \[I]A]], [[Dereference Operator|#R]].&lt;br /&gt;
* [[Attrib of Obj]]&lt;br /&gt;
* ^ &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(left-associative)&lt;br /&gt;
* - (unary)&lt;br /&gt;
* *, /&lt;br /&gt;
* +, - (binary minus)&lt;br /&gt;
* [[Sequence Operator|m..n]]&lt;br /&gt;
* [[Comparison Operators|=, &amp;lt;=, &amp;gt;=, &amp;lt;, &amp;gt;, &amp;lt;&amp;gt;]]&lt;br /&gt;
* [[Logical Operators#And|And]]&lt;br /&gt;
* [[Logical Operators#Or|Or]]&lt;br /&gt;
&lt;br /&gt;
* [[Text_Concatenation_Operator:_%26 | &amp;amp;]]&lt;br /&gt;
* [[Assignment_Operator::_::%3D | :=]]&lt;br /&gt;
* [[If-Then-Else|If..Then..Else]], [[Ifall-Then-Else|Ifall..Then..Else]], [[Ifonly-Then-Else|IfOnly..Then..Else]], [[While..Do]], [[Local..Do]], [[Var..Do]], [[LocalAlias..Do]], [[For..Do]]&lt;br /&gt;
* sequence of statements (;), comma separation of elements or parameters (,)&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
Comments can be embedded anywhere whitespace would be allowed within an expression.  There are two ways to specify comments:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;{ This is a comment }&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;/* This is a comment */&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you start a comment with &amp;quot;{&amp;quot;, your comment cannot contain the &amp;quot;}&amp;quot; character.  Similarly, if you start a comment with &amp;quot;/*&amp;quot;, it musn&#039;t contain the two character sequence &amp;quot;*/&amp;quot;.  If you want to nest comments, for example to temporarily comment out some code that already contains comments, use &amp;lt;code&amp;gt;{...}&amp;lt;/code&amp;gt; for the inner comment and &amp;lt;code&amp;gt;/*...*/&amp;lt;/code&amp;gt; for the outer comment, or vice versa. &lt;br /&gt;
&lt;br /&gt;
=== Version Gated Comments ===&lt;br /&gt;
A version-gated comment contains code that Analytica ignores as a comment in some releases of Analytica, but treats as meaningful code in other releases  For example, suppose you have an algorithm that uses features new in Analytica 5.0, but you still want it to work with Analytica 4.6, perhaps falling back to a less efficient algorithm or to reduced functionality.  A version-gated comment lets you do this without risk of parse errors in the version that might not recognize the newer features.&lt;br /&gt;
&lt;br /&gt;
Consider these equivalent forms of version gated comments:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica release 5.00.00 or after will interpret the expression, but prior releases will ignore it as a comment.  &lt;br /&gt;
&lt;br /&gt;
This gated comment executes the expression in releases 5.00.00 through 5.01.00, but releases before and after will treat it as a comment:&lt;br /&gt;
:&amp;lt;code&amp;gt;{!50000-50100|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This version interprets the expression in any release from 4.0 up to 5.02.00, but any release thereafter treats it as a comment:   &lt;br /&gt;
:&amp;lt;code&amp;gt;{!-50200|&#039;&#039;expression&#039;&#039;}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to accomplish the same thing is to use the [[AnalyticaVersion]] system variable in an expression.&lt;br /&gt;
:&amp;lt;code&amp;gt;[[If]] [[AnalyticaVersion]]&amp;gt;=50000 [[Then]] «expression1» [[Else]] «expression2»&amp;lt;/code&amp;gt;&lt;br /&gt;
But, if either expression uses a function that doesn&#039;t exist in the earlier release, then the expression won&#039;t parse, in which case you need to use a gated comment.&lt;br /&gt;
&lt;br /&gt;
== Script syntax ==&lt;br /&gt;
The obsolete [[Script]] attribute uses  [[Scripting|Typescript]], which has a slightly different syntax from Analytica Expressions (see also [[:Category:Typescript_Commands|Typescript Commands]]). The Script attribute was replaced by [[OnClick]] and [[OnChange]] attributes in [[Analytica 4.6]] release, and is retained only for backward compatibility.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
* All version-gated comments are treated as comment in Analytica release 3.1 and earlier, regardless of what the version number indicates, since the version-gated comment feature was not introduced until Analyica 4.0.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Expressions]]&lt;br /&gt;
* [[Expression Assist]]&lt;br /&gt;
* [[The Expression popup menu]]&lt;br /&gt;
* [[Parsed Expressions]]&lt;br /&gt;
* [[Expressions that don&#039;t array-abstract]]&lt;br /&gt;
* [[Definitions]]&lt;br /&gt;
* [[User-Defined Functions]] &lt;br /&gt;
* [[Function calls and parameters]]&lt;br /&gt;
* [[:Category:Typescript_Commands|Typescript Commands]]&lt;br /&gt;
* [[AnalyticaVersion]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65935</id>
		<title>Analytica model style guide</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65935"/>
		<updated>2026-11-20T00:22:47Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Documentation]]&lt;br /&gt;
[[Category: Concepts]]&lt;br /&gt;
&lt;br /&gt;
The design of Analytica, including influence diagrams and structured model documentation, encourage building models that are much more transparent than other modeling environments, especially spreadsheets. Even so, there are things you can do to improve -- or destroy -- transparency with Analytica, as with any modeling tool!  These guidelines suggest ways to improve transparency of Analytica models.&lt;br /&gt;
&lt;br /&gt;
== Descriptions ==&lt;br /&gt;
&lt;br /&gt;
Clear descriptions make a model much easier to understand for reviewers, maintainers, and even the person who originally wrote the model a few months later.  It is really helpful to include a brief description with every variable, module, and function. &lt;br /&gt;
&lt;br /&gt;
=== Descriptions for user inputs and outputs ===&lt;br /&gt;
&lt;br /&gt;
It is especially important to include a description for each user input and output, if your model has a user interface for end users.  Your end users might not find the title of each object to be sufficient to explain the meaning of each variable, even if it&#039;s obvious to you, the model author.  The user can see the description of each variable, user input or output, and even module in a balloon bubble, simply by moving the cursor over that element. This works the same in Analytica on the desktop as in Analytica Cloud Platform (ACP).&lt;br /&gt;
&lt;br /&gt;
=== Use imperative voice for user inputs and buttons ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s shorter and clearer to use the imperative voice:&lt;br /&gt;
&lt;br /&gt;
* Click this button to see the result&lt;br /&gt;
*  &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should click this button to see the result.&lt;br /&gt;
&lt;br /&gt;
Use second person, &amp;quot;you&amp;quot; or &amp;quot;your&amp;quot;, as appropriate.&lt;br /&gt;
*  Select the state in which you live.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user must select the US state in which he or she lives.&lt;br /&gt;
&lt;br /&gt;
For a checkbox:&lt;br /&gt;
* Check this box to include the results in the saved file.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should check this box if he or she wants results to be included in the saved file.&lt;br /&gt;
&lt;br /&gt;
=== Descriptions for other variables ===&lt;br /&gt;
&lt;br /&gt;
Descriptions for variables should start with a clear description of what the variable represents. It&#039;s a good idea to expand any abbreviations that are not widely known to model users.  &lt;br /&gt;
&lt;br /&gt;
It&#039;s often simplest to start with a noun phrase, like:&lt;br /&gt;
* The net present value of the cash flow.&lt;br /&gt;
* &#039;&#039;&#039;Not&#039;&#039;&#039;:  This variable represents the net present value of the cash flow.&lt;br /&gt;
&lt;br /&gt;
If the Definition code is complicated, it is better to add comments within the Definition explaining anything that may not be obvious, rather than include detailed explanation in the Description.&lt;br /&gt;
&lt;br /&gt;
== Fill out Units ==&lt;br /&gt;
&lt;br /&gt;
It is very helpful to include Units for each variable.  If it has no units (dimensionless), it&#039;s better to put &amp;quot;-&amp;quot; or &amp;quot;none&amp;quot; in the units than to leave it blank, so a reader knows that you intend it not to have units, and you didn&#039;t just forget to specify them.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Document style guide]]:  Guidelines for writing clear English, including Analytica documentation, like this Analytica wiki.&lt;br /&gt;
&lt;br /&gt;
== Analytica coding style ==&lt;br /&gt;
&lt;br /&gt;
These guidelines are about making code in Analytica Definitions easier to read. We strongly recommend them for code examples in these docs, as well as in Analytica models and libraries: &lt;br /&gt;
&lt;br /&gt;
=== Capitalizing text ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores whether letters are upper- or lower-case (except when matching text values). But, these conventions can be very helpful for human readers:&lt;br /&gt;
* Capitalize -- i.e. first letter uppercase -- identifiers and titles of &#039;&#039;&#039;global&#039;&#039;&#039; variables, functions and other objects,  such as &lt;br /&gt;
:&amp;lt;code&amp;gt; Speed_of_light, C,  Sum()&amp;lt;/code&amp;gt;&lt;br /&gt;
*For longer identifiers,  use CamelCase to separate words, such as &lt;br /&gt;
:&amp;lt;code&amp;gt;SpeedOfLight, DetermTable&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use lowercase or camelCase (with first letter lowercase) for local variables and function parameters to distinguish them from global variables. &lt;br /&gt;
* Capitalize parameter qualifiers, for example:&lt;br /&gt;
:&amp;lt;code&amp;gt; Function F(x: Number; I: Index; camelCaseX: Optional Text)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; &#039;&#039;&#039;Not:&#039;&#039;&#039; Function F( x&amp;amp;nbsp;: number; i:Index&amp;amp;nbsp;; CamelCaseX&amp;amp;nbsp;: optional text)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use all uppercase for key words and constructs, like IF...THEN.. ELSE, BEGIN END, FOR... DO... VAR, METAVAR etc. &lt;br /&gt;
&lt;br /&gt;
* In docs, use right-arrow &amp;quot;&amp;amp;amp;rarr;&amp;quot; to mean &amp;quot;the preceding expression generates the following result&amp;quot;:&lt;br /&gt;
 &amp;lt;code&amp;gt; 10^5 &amp;amp;rarr; 100K&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use &#039;&#039;&#039;Suffix notation&#039;&#039;&#039; for numbers, unless there is a reason not to. It&#039;s clear, compact, and Analytica&#039;s default.&lt;br /&gt;
&lt;br /&gt;
=== Spaces ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores spaces, tabs, and newlines. Again, these guidelines can help make the code easier to read and understand:&lt;br /&gt;
* Use spaces to reinforce precedence of binary operators (how tightly operators bind to their operands before and after):&lt;br /&gt;
** Don&#039;t add spaces around high-precedence operators &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, and &amp;quot;^&amp;quot;. &lt;br /&gt;
** Do add spaces around low-precedence operators +, -, =, &amp;amp;lt;, &amp;amp;lt;=, &amp;amp;gt;=, &amp;amp;gt;, &amp;amp;lt;&amp;amp;gt; &lt;br /&gt;
:&amp;lt;code&amp;gt;a + b*c/(d - e)^2 AND (x &amp;amp;lt; y) OR (u = v)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; a+b *c/( d-e )^2 AND (x&amp;amp;lt;y) OR ( u=v )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add one space after, but none before, separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
* Don&#039;t put space after an open paren or bracket &amp;quot;(&amp;quot; or &amp;quot;[&amp;quot;,  or before a close paren or bracket, &amp;quot;)&amp;quot; or &amp;quot;]&amp;quot;.&lt;br /&gt;
:&amp;lt;code&amp;gt;Sum(10 + X, I) - (1 + X^2)/(X - 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Sum( 10+X,I )-( 1+X ^ 2 )/( X-1 )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use these same guidelines for function parameters (actual or formal parameters):&lt;br /&gt;
** No space after or before &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot;. &lt;br /&gt;
** A space after but not before separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
:&amp;lt;code&amp;gt;Function Extra(a: Number; t: Text; flag: Optional = True)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Function Extra( a : number ; t :text;flag : optional = True )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function titles ===&lt;br /&gt;
&lt;br /&gt;
* The Title of a user-defined Function should be identical to its identifier, using underscore &amp;quot;_&amp;quot; to replace any spaces or other non-alphanumeric chars. Analytica does that automatically when you create a function title, and offers to do so when you change a function title. &lt;br /&gt;
&lt;br /&gt;
* Include in the title a list of parameters without qualifiers in parens. You can omit rare optional parameters. That makes it easy to find and select Functions from a library -- e.g.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Function Flatten_array&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Title: Flatten_array(x, I, J, K)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Parameters (x: [i, J]; I, J, K: Index)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Don&#039;t embed numbers in definitions ===&lt;br /&gt;
&lt;br /&gt;
Don&#039;t embed numbers, like conversion constants, in definitions, except small numbers, like 1 or 2. Instead define a Constant to contain the number, and use the Constant in any Definition that uses it.  The advantages are:&lt;br /&gt;
* It makes it clearer what the number means, from the Identifier, Title, and Description of the Constant.&lt;br /&gt;
* If the number needs changing -- e.g. when changing units -- you can do it in one place without having to inspect all the code.&lt;br /&gt;
This is a standard guideline for all computer languages, often ignored by inexperienced coders.&lt;br /&gt;
&lt;br /&gt;
=== Newlines, tabs, and indents ===&lt;br /&gt;
&lt;br /&gt;
Code is much easier to read if you use plenty of new lines to separate logical sections, and indentation to show code between BEGIN and END sections.  This makes it easier for you as the writer of the code, as well as others that may need to review or modify your code.&lt;br /&gt;
&lt;br /&gt;
In Analytica, you can use Tabs to add indents.&lt;br /&gt;
In these docs (Mediawiki), put  a colon, &amp;quot;:&amp;quot; at the start of each line.&lt;br /&gt;
&lt;br /&gt;
== Error messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages are often the worst written part of software (perhaps second only to the license agreement). It&#039;s often worth spending some time to make them clear and useful. An error message should be&lt;br /&gt;
* Friendly. If it&#039;s a deficiency in the model or software, -- e.g. no more space for something -- it could start out by saying &amp;quot;Sorry&amp;quot;, to acknowledge a mistake or deficiency of the programmer/modeler or possibly writer of the operating system.  If the user does the wrong thing or is confused, that is arguably a deficiency in the program or model or documentation -- so again, &amp;quot;Sorry&amp;quot; is often appropriate.&lt;br /&gt;
* Say what went wrong in terms that will be comprehensible to the average or even a novice user.  &lt;br /&gt;
* Tell the user what they should do about the problem --unless it is totally obvious from explaining what went wrong (to the user, not just the writer)&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65934</id>
		<title>Analytica model style guide</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65934"/>
		<updated>2026-11-20T00:22:03Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Documentation]]&lt;br /&gt;
&lt;br /&gt;
The design of Analytica, including influence diagrams and structured model documentation, encourage building models that are much more transparent than other modeling environments, especially spreadsheets. Even so, there are things you can do to improve -- or destroy -- transparency with Analytica, as with any modeling tool!  These guidelines suggest ways to improve transparency of Analytica models.&lt;br /&gt;
&lt;br /&gt;
== Descriptions ==&lt;br /&gt;
&lt;br /&gt;
Clear descriptions make a model much easier to understand for reviewers, maintainers, and even the person who originally wrote the model a few months later.  It is really helpful to include a brief description with every variable, module, and function. &lt;br /&gt;
&lt;br /&gt;
=== Descriptions for user inputs and outputs ===&lt;br /&gt;
&lt;br /&gt;
It is especially important to include a description for each user input and output, if your model has a user interface for end users.  Your end users might not find the title of each object to be sufficient to explain the meaning of each variable, even if it&#039;s obvious to you, the model author.  The user can see the description of each variable, user input or output, and even module in a balloon bubble, simply by moving the cursor over that element. This works the same in Analytica on the desktop as in Analytica Cloud Platform (ACP).&lt;br /&gt;
&lt;br /&gt;
=== Use imperative voice for user inputs and buttons ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s shorter and clearer to use the imperative voice:&lt;br /&gt;
&lt;br /&gt;
* Click this button to see the result&lt;br /&gt;
*  &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should click this button to see the result.&lt;br /&gt;
&lt;br /&gt;
Use second person, &amp;quot;you&amp;quot; or &amp;quot;your&amp;quot;, as appropriate.&lt;br /&gt;
*  Select the state in which you live.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user must select the US state in which he or she lives.&lt;br /&gt;
&lt;br /&gt;
For a checkbox:&lt;br /&gt;
* Check this box to include the results in the saved file.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should check this box if he or she wants results to be included in the saved file.&lt;br /&gt;
&lt;br /&gt;
=== Descriptions for other variables ===&lt;br /&gt;
&lt;br /&gt;
Descriptions for variables should start with a clear description of what the variable represents. It&#039;s a good idea to expand any abbreviations that are not widely known to model users.  &lt;br /&gt;
&lt;br /&gt;
It&#039;s often simplest to start with a noun phrase, like:&lt;br /&gt;
* The net present value of the cash flow.&lt;br /&gt;
* &#039;&#039;&#039;Not&#039;&#039;&#039;:  This variable represents the net present value of the cash flow.&lt;br /&gt;
&lt;br /&gt;
If the Definition code is complicated, it is better to add comments within the Definition explaining anything that may not be obvious, rather than include detailed explanation in the Description.&lt;br /&gt;
&lt;br /&gt;
== Fill out Units ==&lt;br /&gt;
&lt;br /&gt;
It is very helpful to include Units for each variable.  If it has no units (dimensionless), it&#039;s better to put &amp;quot;-&amp;quot; or &amp;quot;none&amp;quot; in the units than to leave it blank, so a reader knows that you intend it not to have units, and you didn&#039;t just forget to specify them.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Document style guide]]:  Guidelines for writing clear English, including Analytica documentation, like this Analytica wiki.&lt;br /&gt;
&lt;br /&gt;
== Analytica coding style ==&lt;br /&gt;
&lt;br /&gt;
These guidelines are about making code in Analytica Definitions easier to read. We strongly recommend them for code examples in these docs, as well as in Analytica models and libraries: &lt;br /&gt;
&lt;br /&gt;
=== Capitalizing text ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores whether letters are upper- or lower-case (except when matching text values). But, these conventions can be very helpful for human readers:&lt;br /&gt;
* Capitalize -- i.e. first letter uppercase -- identifiers and titles of &#039;&#039;&#039;global&#039;&#039;&#039; variables, functions and other objects,  such as &lt;br /&gt;
:&amp;lt;code&amp;gt; Speed_of_light, C,  Sum()&amp;lt;/code&amp;gt;&lt;br /&gt;
*For longer identifiers,  use CamelCase to separate words, such as &lt;br /&gt;
:&amp;lt;code&amp;gt;SpeedOfLight, DetermTable&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use lowercase or camelCase (with first letter lowercase) for local variables and function parameters to distinguish them from global variables. &lt;br /&gt;
* Capitalize parameter qualifiers, for example:&lt;br /&gt;
:&amp;lt;code&amp;gt; Function F(x: Number; I: Index; camelCaseX: Optional Text)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; &#039;&#039;&#039;Not:&#039;&#039;&#039; Function F( x&amp;amp;nbsp;: number; i:Index&amp;amp;nbsp;; CamelCaseX&amp;amp;nbsp;: optional text)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use all uppercase for key words and constructs, like IF...THEN.. ELSE, BEGIN END, FOR... DO... VAR, METAVAR etc. &lt;br /&gt;
&lt;br /&gt;
* In docs, use right-arrow &amp;quot;&amp;amp;amp;rarr;&amp;quot; to mean &amp;quot;the preceding expression generates the following result&amp;quot;:&lt;br /&gt;
 &amp;lt;code&amp;gt; 10^5 &amp;amp;rarr; 100K&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use &#039;&#039;&#039;Suffix notation&#039;&#039;&#039; for numbers, unless there is a reason not to. It&#039;s clear, compact, and Analytica&#039;s default.&lt;br /&gt;
&lt;br /&gt;
=== Spaces ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores spaces, tabs, and newlines. Again, these guidelines can help make the code easier to read and understand:&lt;br /&gt;
* Use spaces to reinforce precedence of binary operators (how tightly operators bind to their operands before and after):&lt;br /&gt;
** Don&#039;t add spaces around high-precedence operators &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, and &amp;quot;^&amp;quot;. &lt;br /&gt;
** Do add spaces around low-precedence operators +, -, =, &amp;amp;lt;, &amp;amp;lt;=, &amp;amp;gt;=, &amp;amp;gt;, &amp;amp;lt;&amp;amp;gt; &lt;br /&gt;
:&amp;lt;code&amp;gt;a + b*c/(d - e)^2 AND (x &amp;amp;lt; y) OR (u = v)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; a+b *c/( d-e )^2 AND (x&amp;amp;lt;y) OR ( u=v )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add one space after, but none before, separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
* Don&#039;t put space after an open paren or bracket &amp;quot;(&amp;quot; or &amp;quot;[&amp;quot;,  or before a close paren or bracket, &amp;quot;)&amp;quot; or &amp;quot;]&amp;quot;.&lt;br /&gt;
:&amp;lt;code&amp;gt;Sum(10 + X, I) - (1 + X^2)/(X - 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Sum( 10+X,I )-( 1+X ^ 2 )/( X-1 )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use these same guidelines for function parameters (actual or formal parameters):&lt;br /&gt;
** No space after or before &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot;. &lt;br /&gt;
** A space after but not before separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
:&amp;lt;code&amp;gt;Function Extra(a: Number; t: Text; flag: Optional = True)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Function Extra( a : number ; t :text;flag : optional = True )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function titles ===&lt;br /&gt;
&lt;br /&gt;
* The Title of a user-defined Function should be identical to its identifier, using underscore &amp;quot;_&amp;quot; to replace any spaces or other non-alphanumeric chars. Analytica does that automatically when you create a function title, and offers to do so when you change a function title. &lt;br /&gt;
&lt;br /&gt;
* Include in the title a list of parameters without qualifiers in parens. You can omit rare optional parameters. That makes it easy to find and select Functions from a library -- e.g.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Function Flatten_array&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Title: Flatten_array(x, I, J, K)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Parameters (x: [i, J]; I, J, K: Index)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Don&#039;t embed numbers in definitions ===&lt;br /&gt;
&lt;br /&gt;
Don&#039;t embed numbers, like conversion constants, in definitions, except small numbers, like 1 or 2. Instead define a Constant to contain the number, and use the Constant in any Definition that uses it.  The advantages are:&lt;br /&gt;
* It makes it clearer what the number means, from the Identifier, Title, and Description of the Constant.&lt;br /&gt;
* If the number needs changing -- e.g. when changing units -- you can do it in one place without having to inspect all the code.&lt;br /&gt;
This is a standard guideline for all computer languages, often ignored by inexperienced coders.&lt;br /&gt;
&lt;br /&gt;
=== Newlines, tabs, and indents ===&lt;br /&gt;
&lt;br /&gt;
Code is much easier to read if you use plenty of new lines to separate logical sections, and indentation to show code between BEGIN and END sections.  This makes it easier for you as the writer of the code, as well as others that may need to review or modify your code.&lt;br /&gt;
&lt;br /&gt;
In Analytica, you can use Tabs to add indents.&lt;br /&gt;
In these docs (Mediawiki), put  a colon, &amp;quot;:&amp;quot; at the start of each line.&lt;br /&gt;
&lt;br /&gt;
== Error messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages are often the worst written part of software (perhaps second only to the license agreement). It&#039;s often worth spending some time to make them clear and useful. An error message should be&lt;br /&gt;
* Friendly. If it&#039;s a deficiency in the model or software, -- e.g. no more space for something -- it could start out by saying &amp;quot;Sorry&amp;quot;, to acknowledge a mistake or deficiency of the programmer/modeler or possibly writer of the operating system.  If the user does the wrong thing or is confused, that is arguably a deficiency in the program or model or documentation -- so again, &amp;quot;Sorry&amp;quot; is often appropriate.&lt;br /&gt;
* Say what went wrong in terms that will be comprehensible to the average or even a novice user.  &lt;br /&gt;
* Tell the user what they should do about the problem --unless it is totally obvious from explaining what went wrong (to the user, not just the writer)&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65933</id>
		<title>Analytica model style guide</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_model_style_guide&amp;diff=65933"/>
		<updated>2026-11-20T00:18:24Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Documentation guidelines]]&lt;br /&gt;
[[Category: Concepts]]&lt;br /&gt;
&lt;br /&gt;
The design of Analytica, including influence diagrams and structured model documentation, encourage building models that are much more transparent than other modeling environments, especially spreadsheets. Even so, there are things you can do to improve -- or destroy -- transparency with Analytica, as with any modeling tool!  These guidelines suggest ways to improve transparency of Analytica models.&lt;br /&gt;
&lt;br /&gt;
== Descriptions ==&lt;br /&gt;
&lt;br /&gt;
Clear descriptions make a model much easier to understand for reviewers, maintainers, and even the person who originally wrote the model a few months later.  It is really helpful to include a brief description with every variable, module, and function. &lt;br /&gt;
&lt;br /&gt;
=== Descriptions for user inputs and outputs ===&lt;br /&gt;
&lt;br /&gt;
It is especially important to include a description for each user input and output, if your model has a user interface for end users.  Your end users might not find the title of each object to be sufficient to explain the meaning of each variable, even if it&#039;s obvious to you, the model author.  The user can see the description of each variable, user input or output, and even module in a balloon bubble, simply by moving the cursor over that element. This works the same in Analytica on the desktop as in Analytica Cloud Platform (ACP).&lt;br /&gt;
&lt;br /&gt;
=== Use imperative voice for user inputs and buttons ===&lt;br /&gt;
&lt;br /&gt;
It&#039;s shorter and clearer to use the imperative voice:&lt;br /&gt;
&lt;br /&gt;
* Click this button to see the result&lt;br /&gt;
*  &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should click this button to see the result.&lt;br /&gt;
&lt;br /&gt;
Use second person, &amp;quot;you&amp;quot; or &amp;quot;your&amp;quot;, as appropriate.&lt;br /&gt;
*  Select the state in which you live.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user must select the US state in which he or she lives.&lt;br /&gt;
&lt;br /&gt;
For a checkbox:&lt;br /&gt;
* Check this box to include the results in the saved file.&lt;br /&gt;
* &#039;&#039;&#039;Not:&#039;&#039;&#039; The user should check this box if he or she wants results to be included in the saved file.&lt;br /&gt;
&lt;br /&gt;
=== Descriptions for other variables ===&lt;br /&gt;
&lt;br /&gt;
Descriptions for variables should start with a clear description of what the variable represents. It&#039;s a good idea to expand any abbreviations that are not widely known to model users.  &lt;br /&gt;
&lt;br /&gt;
It&#039;s often simplest to start with a noun phrase, like:&lt;br /&gt;
* The net present value of the cash flow.&lt;br /&gt;
* &#039;&#039;&#039;Not&#039;&#039;&#039;:  This variable represents the net present value of the cash flow.&lt;br /&gt;
&lt;br /&gt;
If the Definition code is complicated, it is better to add comments within the Definition explaining anything that may not be obvious, rather than include detailed explanation in the Description.&lt;br /&gt;
&lt;br /&gt;
== Fill out Units ==&lt;br /&gt;
&lt;br /&gt;
It is very helpful to include Units for each variable.  If it has no units (dimensionless), it&#039;s better to put &amp;quot;-&amp;quot; or &amp;quot;none&amp;quot; in the units than to leave it blank, so a reader knows that you intend it not to have units, and you didn&#039;t just forget to specify them.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Document style guide]]:  Guidelines for writing clear English, including Analytica documentation, like this Analytica wiki.&lt;br /&gt;
&lt;br /&gt;
== Analytica coding style ==&lt;br /&gt;
&lt;br /&gt;
These guidelines are about making code in Analytica Definitions easier to read. We strongly recommend them for code examples in these docs, as well as in Analytica models and libraries: &lt;br /&gt;
&lt;br /&gt;
=== Capitalizing text ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores whether letters are upper- or lower-case (except when matching text values). But, these conventions can be very helpful for human readers:&lt;br /&gt;
* Capitalize -- i.e. first letter uppercase -- identifiers and titles of &#039;&#039;&#039;global&#039;&#039;&#039; variables, functions and other objects,  such as &lt;br /&gt;
:&amp;lt;code&amp;gt; Speed_of_light, C,  Sum()&amp;lt;/code&amp;gt;&lt;br /&gt;
*For longer identifiers,  use CamelCase to separate words, such as &lt;br /&gt;
:&amp;lt;code&amp;gt;SpeedOfLight, DetermTable&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use lowercase or camelCase (with first letter lowercase) for local variables and function parameters to distinguish them from global variables. &lt;br /&gt;
* Capitalize parameter qualifiers, for example:&lt;br /&gt;
:&amp;lt;code&amp;gt; Function F(x: Number; I: Index; camelCaseX: Optional Text)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt; &#039;&#039;&#039;Not:&#039;&#039;&#039; Function F( x&amp;amp;nbsp;: number; i:Index&amp;amp;nbsp;; CamelCaseX&amp;amp;nbsp;: optional text)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Use all uppercase for key words and constructs, like IF...THEN.. ELSE, BEGIN END, FOR... DO... VAR, METAVAR etc. &lt;br /&gt;
&lt;br /&gt;
* In docs, use right-arrow &amp;quot;&amp;amp;amp;rarr;&amp;quot; to mean &amp;quot;the preceding expression generates the following result&amp;quot;:&lt;br /&gt;
 &amp;lt;code&amp;gt; 10^5 &amp;amp;rarr; 100K&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use &#039;&#039;&#039;Suffix notation&#039;&#039;&#039; for numbers, unless there is a reason not to. It&#039;s clear, compact, and Analytica&#039;s default.&lt;br /&gt;
&lt;br /&gt;
=== Spaces ===&lt;br /&gt;
&lt;br /&gt;
Analytica, like most computer languages, ignores spaces, tabs, and newlines. Again, these guidelines can help make the code easier to read and understand:&lt;br /&gt;
* Use spaces to reinforce precedence of binary operators (how tightly operators bind to their operands before and after):&lt;br /&gt;
** Don&#039;t add spaces around high-precedence operators &amp;quot;*&amp;quot;, &amp;quot;/&amp;quot;, and &amp;quot;^&amp;quot;. &lt;br /&gt;
** Do add spaces around low-precedence operators +, -, =, &amp;amp;lt;, &amp;amp;lt;=, &amp;amp;gt;=, &amp;amp;gt;, &amp;amp;lt;&amp;amp;gt; &lt;br /&gt;
:&amp;lt;code&amp;gt;a + b*c/(d - e)^2 AND (x &amp;amp;lt; y) OR (u = v)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; a+b *c/( d-e )^2 AND (x&amp;amp;lt;y) OR ( u=v )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add one space after, but none before, separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
* Don&#039;t put space after an open paren or bracket &amp;quot;(&amp;quot; or &amp;quot;[&amp;quot;,  or before a close paren or bracket, &amp;quot;)&amp;quot; or &amp;quot;]&amp;quot;.&lt;br /&gt;
:&amp;lt;code&amp;gt;Sum(10 + X, I) - (1 + X^2)/(X - 1)&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Sum( 10+X,I )-( 1+X ^ 2 )/( X-1 )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use these same guidelines for function parameters (actual or formal parameters):&lt;br /&gt;
** No space after or before &amp;quot;(&amp;quot; and &amp;quot;)&amp;quot;. &lt;br /&gt;
** A space after but not before separators &amp;quot;,&amp;quot;, &amp;quot;:&amp;quot; and &amp;quot;;&amp;quot; &lt;br /&gt;
:&amp;lt;code&amp;gt;Function Extra(a: Number; t: Text; flag: Optional = True)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&#039;&#039;Not:&#039;&#039; Function Extra( a : number ; t :text;flag : optional = True )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function titles ===&lt;br /&gt;
&lt;br /&gt;
* The Title of a user-defined Function should be identical to its identifier, using underscore &amp;quot;_&amp;quot; to replace any spaces or other non-alphanumeric chars. Analytica does that automatically when you create a function title, and offers to do so when you change a function title. &lt;br /&gt;
&lt;br /&gt;
* Include in the title a list of parameters without qualifiers in parens. You can omit rare optional parameters. That makes it easy to find and select Functions from a library -- e.g.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Function Flatten_array&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Title: Flatten_array(x, I, J, K)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Parameters (x: [i, J]; I, J, K: Index)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Don&#039;t embed numbers in definitions ===&lt;br /&gt;
&lt;br /&gt;
Don&#039;t embed numbers, like conversion constants, in definitions, except small numbers, like 1 or 2. Instead define a Constant to contain the number, and use the Constant in any Definition that uses it.  The advantages are:&lt;br /&gt;
* It makes it clearer what the number means, from the Identifier, Title, and Description of the Constant.&lt;br /&gt;
* If the number needs changing -- e.g. when changing units -- you can do it in one place without having to inspect all the code.&lt;br /&gt;
This is a standard guideline for all computer languages, often ignored by inexperienced coders.&lt;br /&gt;
&lt;br /&gt;
=== Newlines, tabs, and indents ===&lt;br /&gt;
&lt;br /&gt;
Code is much easier to read if you use plenty of new lines to separate logical sections, and indentation to show code between BEGIN and END sections.  This makes it easier for you as the writer of the code, as well as others that may need to review or modify your code.&lt;br /&gt;
&lt;br /&gt;
In Analytica, you can use Tabs to add indents.&lt;br /&gt;
In these docs (Mediawiki), put  a colon, &amp;quot;:&amp;quot; at the start of each line.&lt;br /&gt;
&lt;br /&gt;
== Error messages ==&lt;br /&gt;
&lt;br /&gt;
Error messages are often the worst written part of software (perhaps second only to the license agreement). It&#039;s often worth spending some time to make them clear and useful. An error message should be&lt;br /&gt;
* Friendly. If it&#039;s a deficiency in the model or software, -- e.g. no more space for something -- it could start out by saying &amp;quot;Sorry&amp;quot;, to acknowledge a mistake or deficiency of the programmer/modeler or possibly writer of the operating system.  If the user does the wrong thing or is confused, that is arguably a deficiency in the program or model or documentation -- so again, &amp;quot;Sorry&amp;quot; is often appropriate.&lt;br /&gt;
* Say what went wrong in terms that will be comprehensible to the average or even a novice user.  &lt;br /&gt;
* Tell the user what they should do about the problem --unless it is totally obvious from explaining what went wrong (to the user, not just the writer)&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=NamespaceGetPath&amp;diff=65925</id>
		<title>NamespaceGetPath</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=NamespaceGetPath&amp;diff=65925"/>
		<updated>2026-11-20T00:07:12Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Meta-Inference Functions]]&lt;br /&gt;
&lt;br /&gt;
== NamespaceGetPath( toObj&#039;&#039;, fromNs&#039;&#039; ) ==&lt;br /&gt;
&lt;br /&gt;
Returns a reference to a list of handles, but with the exception that the first item might be the empty text, &amp;quot;&amp;quot;. The list gives a namespace path that can be used to name «toObj» from within the namespace «fromNS». &lt;br /&gt;
&lt;br /&gt;
The result is a reference to a list so that it can array-abstract over multiple handles. The last item in the list is always «toObj».&lt;br /&gt;
&lt;br /&gt;
When the path returned is an absolute path, starting from the root, the first item is &amp;quot;&amp;quot; (the empty string). There will always be two or more items in the list. &lt;br /&gt;
&lt;br /&gt;
If «fromNS» is omitted, is uses the calling context&#039;s namespace.&lt;br /&gt;
&lt;br /&gt;
If «toObj» is not in the global namespace (such as with a local index), it returns Null.&lt;br /&gt;
&lt;br /&gt;
When «fromNS» is not a namespace, it uses the namespace that «fromNS» is in.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Namespaces]]&lt;br /&gt;
* [[QualifiedName]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Rethrow&amp;diff=65924</id>
		<title>Rethrow</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Rethrow&amp;diff=65924"/>
		<updated>2026-11-19T23:31:24Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Redirected page to Try#Re-throwing an error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Try#Re-throwing_an_error]]&lt;br /&gt;
[[Category: Evaluation Functions]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=CumGeometricInv&amp;diff=65923</id>
		<title>CumGeometricInv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=CumGeometricInv&amp;diff=65923"/>
		<updated>2026-11-19T23:31:11Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Redirected page to Geometric distribution#CumGeometricInv&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Geometric distribution#CumGeometricInv]]&lt;br /&gt;
[[Category:Analytic Distribution Functions]]&lt;br /&gt;
[[Category:Distribution Densities library functions]]&lt;br /&gt;
[[category:Inverse cumulative probability functions]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=CumGeometricInv&amp;diff=65922</id>
		<title>CumGeometricInv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=CumGeometricInv&amp;diff=65922"/>
		<updated>2026-11-19T23:29:57Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Analytic Distribution Functions]]&lt;br /&gt;
[[Category:Distribution Densities library functions]]&lt;br /&gt;
[[category:Inverse cumulative probability functions]]&lt;br /&gt;
#REDIRECT [[Geometric distribution#CumGeometricInv]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Rethrow&amp;diff=65921</id>
		<title>Rethrow</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Rethrow&amp;diff=65921"/>
		<updated>2026-11-19T23:28:26Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Evaluation Functions]]&lt;br /&gt;
#REDIRECT [[Try#Re-throwing_an_error]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Index_labels_auto_updates&amp;diff=65917</id>
		<title>Index labels auto updates</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Index_labels_auto_updates&amp;diff=65917"/>
		<updated>2026-11-17T16:37:56Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Added to category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Expressions]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;New to [[Analytica 7.0]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When you rename an identifier Analytica automatically updates expressions using that identifier. And when you change labels in an Index, it automatically updates edit tables using that index (what we call  [[Table Splicing]]). But prior to release 7.0, there was one annoying exception. When you change a label in an index, it wouldn&#039;t update expressions using that label.&lt;br /&gt;
For example. suppose&lt;br /&gt;
 Index Power_type := [&#039;solar&#039;, &#039;wind&#039;, &#039;gas&#039;, &#039;nuclear&#039;]&lt;br /&gt;
If you edited &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt; to change &amp;lt;code&amp;gt;&#039;solar&#039;&amp;lt;/code&amp;gt;  to &amp;lt;code&amp;gt;&#039;PV&#039;&amp;lt;/code&amp;gt; , it would break this expression:&lt;br /&gt;
 Capacity[Power_type = &#039;solar&#039;]&lt;br /&gt;
But now, it automatically updates it to:&lt;br /&gt;
 Capacity[Power_type = &#039;PV&#039;]&lt;br /&gt;
It sees that &amp;lt;code&amp;gt;&#039;solar&#039;&amp;lt;/code&amp;gt; is an element of Index &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt; and when you change it to &amp;lt;code&amp;gt;&#039;PV&#039;&amp;lt;/code&amp;gt; it so update the expression automatically.  It can similarly detect and update equality and inequality comparisons and other expressions mentioning the Index and label, including &lt;br /&gt;
 [[Choice]], [[Multichoice]], [[PositionInIndex]],  [[SubIndex]], and &amp;lt;code&amp;gt;@[ Power_type = &#039;solar&#039;]&amp;lt;/code&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
== Index-dot-label syntax ==&lt;br /&gt;
&lt;br /&gt;
However, there are some expressions where Analytica can&#039;t fix it because it can&#039;t figure out that the label is associated with the index.  For example:&lt;br /&gt;
  Index Renewable_power_types := [&#039;solar&#039;, &#039;wind&#039;];&lt;br /&gt;
  Capacity[Power_type =Renewable_power_types ]&lt;br /&gt;
You can make sure that the index values are associated with their index using the &amp;lt;index&amp;gt;.&amp;lt;label&amp;gt; syntax, for example:&lt;br /&gt;
  Index Renewable_power_types := [Power_type .&#039;solar&#039;, Power_type .&#039;wind&#039;];&lt;br /&gt;
&lt;br /&gt;
In this case, any change to elements of Power_type will update the corresponding text values wherever they occur associated with the Index.  This dot expression also checks that the label is a valid value of the Index and gives a warning if not. &lt;br /&gt;
&lt;br /&gt;
This syntax provides two advantages:&lt;br /&gt;
# It tells Analytica that the text literal is the value in the index. If you later change the label in the index. Analytica will automatically rewrite this expression, replacing it with the new value. Hence, it makes the model robust to changes in index labels.&lt;br /&gt;
# During evaluation, it checks that &amp;lt;code&amp;gt;&amp;quot;label&amp;quot;&amp;lt;/code&amp;gt; is indeed an element of the index. If not, it issues an evaluation-time warning. If you ignore the warning, the value is &amp;lt;code&amp;gt;&amp;quot;label&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Domain attribute to check text values ===&lt;br /&gt;
&lt;br /&gt;
You can also make use of the [[Domain]] attribute to also help Analytica spot cases where text literals should be associated with an index value. For example, suppose in another variable you have an edit table like:&lt;br /&gt;
&lt;br /&gt;
 Variable Power_plant_type ::= [[Table]]( Power_plant )&lt;br /&gt;
  ( &#039;gas&#039;, &#039;hydro&#039;, &#039;gas&#039;, &#039;solar&#039; ....)&lt;br /&gt;
&lt;br /&gt;
Each cell of the table contains a text entry. By itself there is no intrinsic association of these cell values to the index values of &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt;. The overlap may just be coincidence; hence, if you change a label in the &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt; index, Analytica won&#039;t rewrite these table cells. If they were indeed meant to refer to the  labels of &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt;, that change could introduce a logical error into your model. You may also be faced with a time-consuming task of updating all the cells of the table.&lt;br /&gt;
&lt;br /&gt;
In an example like this, you can use the [[Domain]] attribute to establish the association so that Analytica knows that the text values in this table are supposed to be the same text used in &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt;&#039;s index labels. You should set the domain type to be &amp;quot;Copy from index&amp;quot;, and select &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt; as the index. With that configuration, if you now rename a label in &amp;lt;code&amp;gt;Power_type&amp;lt;/code&amp;gt;, it will automatically rewrite the corresponding cells of the table.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Table Splicing]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=AcpStyles&amp;diff=65916</id>
		<title>AcpStyles</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=AcpStyles&amp;diff=65916"/>
		<updated>2026-11-16T21:37:42Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: /* Disable Assista */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Analytica Cloud Platform]]&lt;br /&gt;
[[Category: Attributes]]&lt;br /&gt;
[[Analytica_Cloud_Player|&amp;lt;&amp;lt;Analytica Cloud Platform ]]&lt;br /&gt;
&lt;br /&gt;
::{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
ACP offers a wide variety of styles and options to control the look and functioning of the user interface. Many of these go beyond what is (currently) available in Desktop Analytica (DTA). &lt;br /&gt;
&lt;br /&gt;
The easiest way to set these styles and options is to use the [[ACP Style Library]], which you can load into your model within ACP from the hamburger menu.  As you change styles in ACP, you can see their effects immediately.  &lt;br /&gt;
&lt;br /&gt;
If you use the [[ACP Style Library]] you don&#039;t need to learn about the ACP Styles described below. The only reason to read the rest of this page is if you want to do something esoteric with AcpStyles, or use one of the few AcpStyles not accessible in the [[ACP_Style_Library]]. &lt;br /&gt;
&lt;br /&gt;
You can also load the  [[ACP Style Library]] in Analytica on the desktop from the &#039;&#039;&#039;Add Library...&#039; option from the &#039;&#039;&#039;File&#039;&#039;&#039; menu. But, you won&#039;t be able to see the effects until you upload the model into ACP.&lt;br /&gt;
&lt;br /&gt;
The styles and options are specified as keywords and tags in the AcpStyles  attribute. Most styles and options apply to the whole Model and are specified in the AcpStyles attribute of the Model.  When you want to specify special styles for individual modules or variables, you apply them to the ACPStyles attribute of the relevant object.&lt;br /&gt;
 &lt;br /&gt;
The easiest way to view and edit the AcpStyles  attribute in Desktop Analytica is to use the [[Attribute panel]].  Select AcpStyles  from the list of Attributes at the top of that panel. By default, AcpStyles is not shown in the [[Object window]], so you first need to set it to be shown either with the [[Object_Window|right click menu]] in the Object window, or in the [[Manage attributes|Attributes dialog]].  &lt;br /&gt;
&lt;br /&gt;
The AcpStyles  and their flags are not case sensitive.  &lt;br /&gt;
&lt;br /&gt;
When you put multiple flags in a AcpStyles attribute, put each flag on a separate line. &lt;br /&gt;
&lt;br /&gt;
== Model level styles  ==&lt;br /&gt;
&lt;br /&gt;
These styles apply to the entire model. You set them in the AcpStyles attribute for the Main Model. (They have no effect when set for a submodule.)&lt;br /&gt;
&lt;br /&gt;
=== Navigation style  ===&lt;br /&gt;
&lt;br /&gt;
These Navigation_style options control how a user can view and access the module hierarchy:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Outline&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Show an expandable tree of modules on the left of the ACP window, similar to the outline view in desktop Analytica (showing only modules not other objects). This is the default style when you upload a model with no ACP styles set or no Acp styles library embedded, or if you have not yet set the Navigation style in the Acp styles library. A navigation flag is not needed for this style, but if you want to explicitly set this style you can add &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Outline&amp;lt;/code&amp;gt;&#039;&#039;&#039; to the top diagram&#039;s AcpStyles attribute.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Top diagram only&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Show only the top diagram, with no Outline and no tabs. This lets you make a simple web application with a single UI page.  &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the next two  &#039;Tabbed application&#039; styles, each module in the main model becomes a tab. The order of the tabs follows the sequence of the module nodes in the main diagram, from  left to right then top to bottom. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The main modules in the top model appear as a row of tabs across the top of the window. Click a tab to show the diagram for that module. &lt;br /&gt;
&amp;lt;!--Remove for now* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Two_top_tabs&amp;lt;/code&#039;&#039;&#039;&amp;gt; --  The main modules in the top model appear as a row of tabs. The submodules of the module whose tab is selected appear as a second row of tabs. Needs to be used with the style&#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;. --&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The main modules in the top model appear as a column of tabs on the left of the window. Click a tab to show the diagram for that module.&lt;br /&gt;
&amp;lt;!--Remove for now * &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Two_side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039;  -- The top tabs reflect the main modules in the top model. Clicking a top tab shows a a set of subtabs, reflecting the submodules of main module (tab) selected. Needs to be used with the style &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We describe each in more detail below.&lt;br /&gt;
&lt;br /&gt;
===Outline Tree===&lt;br /&gt;
&lt;br /&gt;
By default, when using the Outline Navigation style, ACP shows an expandable outline tree of modules on the left hand side of the window, similar to the Outline view in Analytica on the desktop. This makes it easy to navigate a model with an extensive hierarchy of modules. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_outline: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default, and unecessary for Outline Navigation style. It is generally redundant with other Navigation styles since the tabs or hierarchy show the same information, and the Outline takes up screen space. But you can add  it to the top diagram&#039;s AcpStyles attribute if you want to show the Outline tree with other Navigation styles.&lt;br /&gt;
&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Outline tree 6.0 01.png]]|{{CalloutAnnotation|Market model with&amp;lt;br&amp;gt;Outline Tree|v=80|pt=10,106}}}}&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; --  When using the Acp Style library this is set by default for Navigation styles other than Outline. For small models, and most web apps, you may want to suppress the Outline view even when using the Outline Navigation style. Do this by inserting this text into the top diagram&#039;s AcpStyles attribute (See image below). (If a model has only one diagram,  i.e. with no modules, it never shows the outline tree.)&amp;lt;br/&amp;gt;&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Outline tree 6.0 02.png]]|{{CalloutAnnotation|Market model with &amp;lt;br/&amp;gt;&#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;|v=80}}}}&lt;br /&gt;
&lt;br /&gt;
===Top Diagram Only===&lt;br /&gt;
&lt;br /&gt;
Set by adding &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_diagram_only&amp;lt;/code&amp;gt;&#039;&#039;&#039; to the AcpStyles attribute of the top diagram. &amp;lt;!--Not to be confused with the AcpStyles flag of similar name: &#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;. -This is a navigation style most easily set with the ACP styles library. --&amp;gt; The Styles library will set the flag &amp;lt;!--&#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only:yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;,--&amp;gt; &#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; .&lt;br /&gt;
&lt;br /&gt;
===Tabbed Module Navigation===&lt;br /&gt;
&lt;br /&gt;
As an alternative to the Outline view, you can set the &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style&amp;lt;/code&amp;gt;&#039;&#039;&#039; to use use a tabbed interface which is often more convenient and familiar for web applications. By default, the main model appears as the first tab. You can change this with the style [[AcpStyles_Attribute_Values#Exclude_the_top_level_diagram_from_tabs|show_as_tab:no]] described below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Replace this section with one that does not talk about two tabs for now - until they are implemented in ACP3 - There are four tabbed styles, Top_tabs and Two_top_tabs, with one or two rows of tabs across the top, respectively; and Side_tabs and Two_side_tabs with one or two columns of tabs down the side. Top_tabs works well if you have up to 5 to 8 modules in the main diagram (tabs), depending on the length of their titles and the width of the ACP window.  If you have a lot of modules, or they have long titles, it may be better to use Side_tabs.  If you have too many modules to fit at the top or side, you can use Two_top_tabs or Two_side_tabs. In those cases, you must organize the modules into a two-level hierarchy with logical groupings. &lt;br /&gt;
&lt;br /&gt;
&#039;Top tabs or side tabs.&#039; The first tab displays the top level diagram, and the remaining tabs display the modules present on the top level diagram of the model.  (The modules will not display on the diagram, so you need to tweak your diagram for playing in ACP so that it looks right without these present). The size of the diagram is determined by the size of the top level diagram window when the model was last saved in Analytica.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; This setting instructs ACP to use the &#039;Tabs across top&#039; navigation style.&lt;br /&gt;
&lt;br /&gt;
:[[File:Top tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; This setting instructs ACP to use the &#039;Side tabs&#039; navigation style.  Side tabs work better than top tabs when there are more module nodes present.&lt;br /&gt;
&lt;br /&gt;
:[[File:Side tabs 6.0 01.png]]&lt;br /&gt;
* &amp;lt;code&amp;gt;Navigation_style: Two_top_tabs&amp;lt;/code&amp;gt; &lt;br /&gt;
* &amp;lt;code&amp;gt;Navigation_style: Two_side_tabs&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;These 2 Navigation styles replace the style  &amp;lt;code&amp;gt;two_tiers_tabs:yes&amp;lt;/code&amp;gt; which has been deprecated.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
These styles are useful for modules with several layers of modules and submodules - to reduce the clutter of the top layer of tabs. Modules in the model&#039;s top diagram appear as top tabs (left tabs).  Modules within those top level modules appear as subtabs,  the &#039;second tier&#039;. When you select a top-level tab, it shows its submodules as subtabs. This means that the top level of modules will not show any contents other than their submodules, so the model needs to be designed with this in mind.&lt;br /&gt;
*Currently these 2 styles must be used with the &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; style set. &amp;lt;!--Coming soon: Compatibility with &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
*The selected tab appears with the color of the diagram background of it&#039;s module&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
There are two tabbed styles, Top_tabs, with a row of tabs across the top; and Side_tabs with a column of tabs down the side. Top_tabs works well if you have up to 5 to 8 modules in the main diagram (tabs), depending on the length of their titles and the width of the ACP window.  If you have a lot of modules, or they have long titles, it may be better to use Side_tabs.  &lt;br /&gt;
&lt;br /&gt;
&#039;Top tabs or side tabs.&#039; The first tab displays the top level diagram, and the remaining tabs display the modules present on the top level diagram of the model.  (The modules will not display on the diagram, so you need to tweak your diagram for playing in ACP so that it looks right without these present). &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- This setting instructs ACP to use the &#039;Tabs across top&#039; navigation style.&lt;br /&gt;
&lt;br /&gt;
[[File:Top tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- This setting instructs ACP to use the &#039;Side tabs&#039; navigation style.  Side tabs work better than top tabs when there are more module nodes present.&lt;br /&gt;
&lt;br /&gt;
[[File:Side tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
=== Toolbar Tabs ===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- By default, with the Outline Navigation style. ACP shows navigation tabs for &amp;quot;Diagram&amp;quot;, &amp;quot;Object&amp;quot;, &amp;quot;Table&amp;quot;, &amp;quot;Graph&amp;quot; along the top. Use this flag to hide those tabs. If you display the model inputs and outputs on the diagram -- using embedded tables and graphs on the diagram -- your users may not need those tabs.  (You can also use &#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; to explicitly show the tabs in Outline and Top diagram only Navigation styles.) &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_toolbar: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- A synonym for &#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;. Either style hides these tabs, and either one set to &#039;&#039;&#039;&amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; shows them.&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Show tabs no 6.0 0.1.png]]|{{CalloutAnnotation|Market model with &amp;lt;br/&amp;gt;&#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;|v=80|pt=232,37|path=t!-}}}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Module hierarchy bar ===&lt;br /&gt;
Using tabbed navigation, ACP shows the model hierarchy in a bar at the top of the diagram by default. The model hierarchy header shows you where you are in a large model by listing the titles of the ancestor modules in which the current diagram is nested.  You can click any ancestor to click up levels in the hierarchy. The Hierarchy Bar takes up much less screen real estate than the Outline Tree. ACP doesn&#039;t show the hierarchy bar when you are viewing a top level module, or if the module title is already in the selected tab. &amp;lt;!--With a two-level tab navigation, it shows the hierarchy bar only when viewing a module nested 3 or more levels down. Basically, the hierarchy header does not duplicate what you can see in the tabs.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this setting is not based on a AcpStyles attribute, but rather on the &#039;&#039;Show module hierarchy&#039;&#039; check box in the model [[Preferences]] in Analytica.  If you want to set this preference manually, with the model opened in Analytica, on the [[Edit menu]], select &#039;&#039;&#039;Preference...&#039;&#039;&#039;, and check (or uncheck) the &#039;&#039;Show module hierarchy&#039;&#039; checkbox. &lt;br /&gt;
&lt;br /&gt;
If you are using the ACP styles library, the Styles library will set this to the default setting automatically once you select a Navigation style. But you have the option of changing it if, for instance you want to show the Outline and the Hierarchy bar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--:[[Image:Acp hh.png]]--&amp;gt;&lt;br /&gt;
===Auto zoom ===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagrams: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- ACP automatically zooms the UI to fit the browser window -- the most constraining of width or height so it retains the aspect ratio of the diagram. Works with zoom in and zoom out. Auto Zoom will allow a model to go down to 50% of its size or up to 200% of its size. If the model does not fit at 50% size, the window will show scroll bars. This Acp style has no effect if &#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:Yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; is present, you can use only one or the other. You can also set &#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagrams: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; which is the default. (This is a model level setting and is added to the top diagram of a model).&lt;br /&gt;
&lt;br /&gt;
===Customize zoom levels===&lt;br /&gt;
AcpStyles for controlling the max/min zoom when &#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagram: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; is set. The default if these styles are not set is as above - 50% and 200%. The easiest way to set these is with the [[ACP_Style_Library]] - where the controls are in the Esoteric ACP styles module. This is available from the Hamburger menu in ACP. Note that in order to see this effect, the &#039;&#039;&#039;&amp;lt;code&amp;gt;Browser window size&amp;lt;/code&amp;gt;&#039;&#039;&#039; needs to have the screen size pulldown menu set to &#039;&#039;&#039;&amp;lt;code&amp;gt;Auto zoom&amp;lt;/code&amp;gt;&#039;&#039;&#039; as well. &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;zoom_min_percent: 75&amp;lt;/code&amp;gt;&#039;&#039;&#039; (means that the minimum zoom level will be 75% or .75)&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;zoom_max_percent: 125&amp;lt;/code&amp;gt;&#039;&#039;&#039; (means the that max zoom level will be 125% or 1.25)&lt;br /&gt;
&lt;br /&gt;
===Use top diagram size for all ACP windows===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:Yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; --  Sets the size of all diagrams based on the size of the diagram window of the top level when the model was last viewed in Desktop Analytica (in non-maximized mode).  &#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:No &amp;lt;/code&amp;gt;&#039;&#039;&#039; is the same as if the flag is not set, and is the default  - the ACP diagram will use the entire browser window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Not in ACP3 yet - ER519&lt;br /&gt;
===Display Only a Single Diagram===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Use this flag if you want to restrict users access to only the top diagram. With this flag, any action that would normally bring up a different diagram will just reload the top diagram.  (If you are using this setting, you will also want to also not display the Outline Tree as explained above, since clicking on the modules in the Outline will have no effect.)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
===Show or hide the Dashboard Title and Model title===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_model_title: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Hide the title of the model, which appears by default in the top Teal bar.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_diagram_title: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; --  Use  to show the dashboard title at the top of the diagram. Or &amp;lt;code&amp;gt;show_diagram_title: no&amp;lt;/code&amp;gt; to suppress the diagram title, but not really necessary because ACP does not show the diagram title by default.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Hide the Banner and Logo===&lt;br /&gt;
Another flag it&#039;s easier to use the [[ACP Style Library]] to set, since it is only compatible with the toolbar tabs hidden. The Styles library changes all the flags at once, and prevents you from entering incompatible combinations.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_banner: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Hides the banner space usually present at the top of ACP. The banner typically contains the Lumina Logo, the &#039;&#039;&#039;Parent Diagram&#039;&#039;&#039; button, tabs, &#039;&#039;&#039;Close Model&#039;&#039;&#039; button, and &#039;&#039;&#039;Save&#039;&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
:*This could be useful for customizing the appearance of a model [[Putting_ACP_in_a_Web_Page|embedded in a web page]], for instance.&lt;br /&gt;
:[[File:Banner area 01.PNG]]&lt;br /&gt;
:*If you play a model without the banner area in ACP, there isn&#039;t a convenient way to close the model without closing the browser.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exclude diagram(s) from tabs===&lt;br /&gt;
&lt;br /&gt;
When using tabbed navigation, you can select those modules (from the top model diagram) that you want to appear as a tab in ACP. The default is for all to appear as tabs. You should use the &#039;&#039;Show modules as tabs&#039;&#039; choice menu in the &#039;&#039;&#039;&amp;lt;code&amp;gt;ACP Navigation styles&amp;lt;/code&amp;gt;&#039;&#039;&#039; section of the [[ACP Style Library]] if you want to set this flag,, and if you also want to hide the modules corresponding to these tabs [[ChangeNodeVisibility|hidden]], so that the model viewer cannot see them.&lt;br /&gt;
&lt;br /&gt;
*Optionally, Enter the text &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; in the AcpStyles attribute of the modules you don&#039;t wish to show as a tab. The modules themselves will not be hidden with this setting, only the tabs.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Excludes the top level diagram and just shows the submodules of the top level diagram as tabs. Since the top diagram will not display in ACP, you include the key user interface pages as modules in the main model. Can be used only with &#039;Top tabs&#039; or &#039;Side tabs&#039; styles. &lt;br /&gt;
*When setting tabbed Navigation styles using the ACP Styles Library, the default is for the Top level diagram to be included, except with two tiers of tabs, for which it is (Currently) required to exclude the top diagram from the tabs.&lt;br /&gt;
&lt;br /&gt;
If you want to see what it looks like, play this model [[Media:Show as tab no.ana|Array examples]] in ACP, with the &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; style in the AcpStyles  attribute, and set to tabs along top.&lt;br /&gt;
&lt;br /&gt;
:[[File:Show as tab no02.png]]&lt;br /&gt;
&lt;br /&gt;
*Play this model in ACP and the top level diagram does not show. Rather the diagram for &#039;Intro to Arrays&#039; shows as the first tab and then the other tabs.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:[[File:Show as tab no01.png]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
===Tab color===&lt;br /&gt;
&lt;br /&gt;
When using Tabbed Navigation, you can use these flags to control how the color of the tabs display on your model in ACP. To use, add one of them to the AcpStyles attribute of the top level diagram of your model. They have no effect if added to a module other than the top diagram.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Default &amp;lt;/code&amp;gt;&#039;&#039;&#039; The default. Non-selected tabs are bluish white. The selected tab uses the background color for that diagram.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Background &amp;lt;/code&amp;gt;&#039;&#039;&#039; All tabs use their diagram background color, whether selected or not&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Node &amp;lt;/code&amp;gt;&#039;&#039;&#039;  The selected Tab uses its diagram background color; The other tabs use the color of their Module node (not their diagram background color).  You can use this to change the color of the tabs by modifying their node color in an Analytica functions.&lt;br /&gt;
&lt;br /&gt;
== Model level styles for diagram nodes. ==&lt;br /&gt;
&lt;br /&gt;
These model-level styles affect how all nodes are displayed in diagrams.  &lt;br /&gt;
===Default view for Frame nodes===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Frame_default_view:object&amp;lt;/code&amp;gt;&#039;&#039;&#039; Shows the default view as the object view for all frame nodes (until  you click another option e.g. graph or table) . &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Frame_default_view:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; The default.&lt;br /&gt;
=== Node shadows and bevels  ===&lt;br /&gt;
&lt;br /&gt;
By default ACP displays nodes without shadows or bevels (for now) , so they look like this:&lt;br /&gt;
:[[Image:Nodes no shadow or bevel.png]] &lt;br /&gt;
&lt;br /&gt;
Set this flag to show a drop shadow behind each node, giving a kind of 3D effect:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;node_drop_shadow: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:[[Image:Nodes drop shadow.png]] &lt;br /&gt;
&lt;br /&gt;
Set this flag to display a bevel border for each node, giving another kind of 3-D effect: &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;bevel_node_border: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
:[[Image:Nodes beveled border.png]] &lt;br /&gt;
&lt;br /&gt;
===Node hover highlighting===&lt;br /&gt;
&lt;br /&gt;
By default, ACP displays a highlight -- a contrasting light rectangle behind a node -- when you move the cursor over the node:&lt;br /&gt;
&lt;br /&gt;
[[File:acp hover hl.png]]&lt;br /&gt;
&lt;br /&gt;
You can switch it off by setting:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_highlight: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
=== Balloon Help  ===&lt;br /&gt;
&lt;br /&gt;
When you move the cursor over a node, ACP usually shows a &amp;quot;balloon&amp;quot; popup next to the node with the description of the node (if it has one) to help end users understand what its for, or what to enter for a user input. If the node has no description, the [[help balloons|balloon help]] will not appear.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_id_in_balloon: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; Use this flag to show each node&#039;s identifier below its title in the balloon -- unless the identifier and title are identical (except for spaces which are replaced by underscores). This flag goes in the AcpStyles of the model and apply to all nodes in the model.&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_definition_in_balloon: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Use this flag to show the node&#039;s definition in the balloon below the description.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;hover_balloon_delay&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::When you mouse over a node, there&#039;s a short delay of about half a second before it displays the balloon (to prevent wild balloon appearance when you move the cursor rapidly over a diagram.) You can tweak this delay time measured in milliseconds by inserting this flag. E.g. &#039;&#039;&#039;&amp;lt;code&amp;gt;hover_balloon_delay: 200&amp;lt;/code&amp;gt;&#039;&#039;&#039; to reduce the delay to .2 seconds.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The flags above go in the AcpStyles of the model and apply to all nodes in the model. You can also modify some aspects of the balloon separately for each node by inserting these flags in AcpStyles for each node: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_balloon: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
::Insert this flag in the AcpStyles for a node, to suppress display of its balloon. --&amp;gt;&lt;br /&gt;
&amp;lt;!--title no longer shows in the balloon&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_balloon_title: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
::Insert this flag in the AcpStyles for a node, to suppress its title in the balloon.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flex box diagram layout===&lt;br /&gt;
&lt;br /&gt;
By default, ACP places every node at the position it has in the Analytica diagram. As an alternative, you can lay a diagram out as a &#039;&#039;flex box&#039;&#039;, in which the nodes flow across the diagram and wrap onto more lines as the browser window changes size. Unlike most of the styles above, you set this on the AcpStyles attribute of the module whose diagram you want laid out this way, so different diagrams in one model can use different layouts.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;display: flex&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Lay this diagram out as a flex box.&lt;br /&gt;
&lt;br /&gt;
Frame nodes, tall form nodes and text nodes become the items of the flex box. ACP does not draw influence arrows on a flex diagram.&lt;br /&gt;
&lt;br /&gt;
These styles adjust the layout. They have no effect unless &#039;&#039;&#039;&amp;lt;code&amp;gt;display: flex&amp;lt;/code&amp;gt;&#039;&#039;&#039; is also set on the same diagram:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_direction: row&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Items flow from left to right. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;flex_direction: column&amp;lt;/code&amp;gt;&#039;&#039;&#039; to make them flow from top to bottom.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_wrap: wrap&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Items wrap onto more lines when they don&#039;t fit. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;flex_wrap: no_wrap&amp;lt;/code&amp;gt;&#039;&#039;&#039; to keep them all on one line.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_h_align: left&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;&#039;&#039;&#039; or &#039;&#039;&#039;&amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;&#039;&#039;&#039; to change the horizontal alignment of the items.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_v_align: top&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;&#039;&#039;&#039; or &#039;&#039;&#039;&amp;lt;code&amp;gt;bottom&amp;lt;/code&amp;gt;&#039;&#039;&#039; to change the vertical alignment of the items.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_gap: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The spacing around each item. ACP divides &#039;&#039;n&#039;&#039; by four to get the margin and the padding in pixels, so the default of 16 gives four pixels of each. Set this one on the top model rather than on the individual diagram.&lt;br /&gt;
&lt;br /&gt;
You can include or exclude an individual node by setting this style in the AcpStyles attribute of that node:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_box_item: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Make this node an item of the flex box even though it would not otherwise be one.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_box_item: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Keep this node out of the flex box.&lt;br /&gt;
&lt;br /&gt;
===Background of text input boxes===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;text_inputs_white: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The box for typing into a text input node takes the background color of the node it sits on. By default, &#039;&#039;&#039;&amp;lt;code&amp;gt;text_inputs_white: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;, the box is white. This is a model level style - it needs to be entered into the AcpStyle of the top model.&lt;br /&gt;
&lt;br /&gt;
==ACP styles inheritance==&lt;br /&gt;
This is the order of inheritance for Acpstyles below that apply to tables and graphs. Styles at a higher level take precedence over the lower precedence styles. (Inheritance doesn&#039;t apply to the ACPstyles described above tbecause they work only at the Model level.)&lt;br /&gt;
# &#039;&#039;&#039;Variable&#039;&#039;&#039; (includes Tall nodes): Acpstyles applied to an individual variable will take precedence over all other styles. A variable with a style of &amp;lt;code&amp;gt;show_title:no&amp;lt;/code&amp;gt; will not show the title, even if the model level style is &amp;lt;code&amp;gt;show_title:yes&amp;lt;/code&amp;gt;, and if that node shows it&#039;s result in a frame node the variable style will override the frame node style.&lt;br /&gt;
# &#039;&#039;&#039;Frame&#039;&#039;&#039; : An Acpstyle set for a frame node will affect any variable shown in that frame that doesn&#039;t have its own settings. These will also override any styles at the model level.&lt;br /&gt;
# &#039;&#039;&#039;Model ACP style defaults&#039;&#039;&#039;: Acpstyles that you can enter into the Acptyles attribute of the top diagram of your model. These will override the ACP defaults, and will be inherited by frame nodes and variables in the model that don&#039;t have their own Acpstyle.&lt;br /&gt;
# &#039;&#039;&#039;ACP style defaults for ACP&#039;&#039;&#039;: The default style ACP uses if you have no specific setting for that style. Eg for show_index_menus the default is fly-in and that is what will show if you don&#039;t enter a different show_index_menus: Acpstyle flag in the Acpstyle for the top diagram (model level) or for frame nodes or variables.&lt;br /&gt;
&lt;br /&gt;
==ACP Styles for tables and graphs==&lt;br /&gt;
&lt;br /&gt;
These styles affect how result graphs and tables are displayed in ACP, including in [[Embed_table_or_graph_with_ACP#Frame_nodes|Tall nodes]] and [[Embed_table_or_graph_with_ACP#Tall_nodes|˞Frame nodes]]. They provide options not (yet) available in Desktop Analytica. ACP has default settings for these. You can override these settings for the entire model. You can also set them for [[Embed_table_or_graph_with_ACP#Frame_nodes|˞Frame nodes]], which will apply to all results shown in the Frame and override the ACP and model level settings. And you can set these styles for individual variables, which will override any settings in the Model or Frame. As always, it&#039;s easiest to set the using the [[ACP Style Library]]. &lt;br /&gt;
&lt;br /&gt;
None of these styles apply to tab result views using the default Navigation_style: Outline.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Description===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_description: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; If &amp;lt;code&amp;gt;n &amp;gt; 0 &amp;lt;/code&amp;gt; it shows the Description of the variable above the table or graph using up to n% of the vertical space available. If that&#039;s not big enough to show the entire description, it shows a vertical scroll bar. Iif you don&#039;t want to show the description at all, set &amp;lt;code&amp;gt;n = 0&amp;lt;/code&amp;gt;. Default if not mentioned, is one third, i.e. &amp;lt;code&amp;gt;Show_description: 33&amp;lt;/code&amp;gt;.  You can set this style at the model level for all Frame or Tall nodes, and you can override this default for any individual node.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Object view icon===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_Frame:yes/no&amp;lt;/code&amp;gt;&#039;&#039;&#039;: With this style set, it shows an object view hover icon at the top right of a frame node or tall node when showing a graph or table view. Click this icon to show the object window view. The object view shows the Table and Graph hover icon to go back to the table or graph view.  You can set &#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_frame&amp;lt;/code&amp;gt;&#039;&#039;&#039; style at either the top level of the model or in an individual frame node, which overrides the top level setting. When working with tall nodes, you can set &#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_frame&amp;lt;/code&amp;gt;&#039;&#039;&#039; style at the top level or in the original variable&#039;s ACP style setting, which overrides the top level setting.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the title===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_title&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Set &amp;lt;code&amp;gt;Show_title: yes&amp;lt;/code&amp;gt; to show or &amp;lt;code&amp;gt;Show_title: no&amp;lt;/code&amp;gt; to stop showing the Title and units of a selected variable. This style can be used at the model level, for frame nodes or for individual nodes, but controls  whether or not the Title and units show in Frame nodes or tall nodes. &lt;br /&gt;
&lt;br /&gt;
===Show or hide the Graph-Table icon===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_graph_table_icon:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; Hides the icon in the top right of a Result that lets you toggle between Graph and Table view. This applies to [[Embed_table_or_graph_with_ACP|Frame nodes and tall nodes]]. This style can be used for  the entire model, for frame nodes or for individual nodes . You set them in the AcpStyles attribute.  Conversely, you can set  &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_graph_table_icon:yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;. This is the default so not usually necessary at the model level, but can be used in a frame node or variable to override the model default or override a frame node setting.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Uncertainty view menu===&lt;br /&gt;
By default, in ACP, as in desktop Analytica, the [[Uncertainty views]] menu appears above each result graph or table to let you select [[Mid]] to display its deterministic value, or Mean, Probability distribution, and other ways to display a probabilistic value.  &lt;br /&gt;
&lt;br /&gt;
You can override this default behavior with this ACP style for the entire model, [[Embed_table_or_graph_with_ACP#Frame_nodes|Frame nodes]], or for individual variables. The Uncertainty view menu is always present in tab result views.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; Never show the uncertainty menu in frame nodes or tall result nodes. Suitable for models with no probabilistic values, or if you want to fix a particular probabilistic view for each frame node or variable so that ACP users can&#039;t change it.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: Yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; Always show the uncertainty menu even for variables that are not probabilistic, as in Desktop Analytica. This is the default and not normally necessary at the model level, but can be used to customize which frame nodes or variables to show the uncertainty view menu when the model level style is set to &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: No&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Index menus and Pivoters/slicers===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Fly-in&amp;lt;/code&amp;gt;&#039;&#039;&#039; By default (the same as if there is no show_index_menu: setting) the index menus are not shown in [[https://wiki.analytica.com/index.php?title=Embed_table_or_graph_with_ACP|frame nodes or tall nodes]] (but slicers are), since often the modeler has already chosen the pivot they want to use. And because these menus take up valuable screen space. But if you hover over the frame node (or tall node) there is a fly-in pivoter control. If you click this it toggles - on or off - the visibility of the pivoters; allowing you to pivot the result table or graph and then close the pivoters to give you more space.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; If you do want to allow users to be able to pivot or change the slice of the table or graph, without using the fly-in, then use use show_index_menus:yes. Always present in tab result views.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; If show_index_menus:no is set then the indexes and pivoters will not show and there is no fly-in, but the slicers will still be present.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Not_even_slicers&amp;lt;/code&amp;gt;&#039;&#039;&#039; If you don&#039;t want to show any pivoters or slicers, you can set show_index_menus:Not_even_slicers.&lt;br /&gt;
&lt;br /&gt;
===Table filtering===&lt;br /&gt;
(For result tables only)&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Table_Filtering: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; Turns off the ability to filter result tables by column, and reverts to the previous sort functionality. [[Tables_in_ACP#Sort_columns]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Table_Filtering: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; The default - shows the table filtering icons in result tables.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Rows and Columns pivot controls===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_row_col_header: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Hides the &amp;quot;Rows&amp;quot; and &amp;quot;Columns&amp;quot; pivot controls above a result table, while still showing any slicers.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_row_col_header: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- No effect in the new Table UI&lt;br /&gt;
===Position of the row pivoter===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;row_pivoter_loc: header&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Puts the pivoter for the row index inside the top left header cell of the table itself, rather than among the pivot controls above the table. Set it for the model, or for an individual variable to move the pivoter of just that table. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Links from table headers===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;blue_handle_links: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- A row or column header whose value is a handle to an object normally appears as a blue link, and clicking it jumps to that node in its diagram. This style shows those headers as ordinary text instead. It is a model level style.&lt;br /&gt;
*Note this has no effect on graph labels.&lt;br /&gt;
&lt;br /&gt;
===Very large tables===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;acp_large_table_scroll: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Turns on virtual scrolling, so that ACP fetches and renders only the cells of a table that are actually in view. This makes a very large table usable. It applies only to tables bigger than the cell limit configured on the ACP server. Set it for the model, or for an individual variable.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;acp_max_table_size_to_show: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The largest number of body cells (rows times columns) that ACP shows in a table. A bigger table is truncated. When you don&#039;t set it, the limit configured in the [[Customizing_an_ACP_server#The_acpConfig.json_file|AcpConfig.json]] file applies. This is a model level style.&lt;br /&gt;
&lt;br /&gt;
===Autocalc===&lt;br /&gt;
&lt;br /&gt;
In the  [[ACP Style Library]], Autocalc looks like a style you can set for a model, module or variable. It controls whether ACP evaluates each variable and shows its results automatically when you view a Diagram or tab showing the -- instead of the default Analytica behavior where the end user has to click on a Calc button to compute a result.  With Autocalc on, a result in view also recomputes automatically when you change an input that influences it.&lt;br /&gt;
&lt;br /&gt;
Autocalc is not actually an ACPStyle in ACP3. (It was in ACP1.)  Autocalc is implemented using the Desktop Analytica functionality  for [[Proactive_Evaluation]].&lt;br /&gt;
&lt;br /&gt;
== Node Level Settings  ==&lt;br /&gt;
&lt;br /&gt;
These style flags and options apply to individual nodes (variables), rather than the model as a whole. So, you set these flags on the AcpStyles for selected objects (nodes).&lt;br /&gt;
&lt;br /&gt;
=== Other node level flags ===&lt;br /&gt;
&lt;br /&gt;
===Date Picker===&lt;br /&gt;
Show a date picker for input nodes.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:none&amp;lt;/code&amp;gt;&#039;&#039;&#039; [default]&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:date&amp;lt;/code&amp;gt;&#039;&#039;&#039; [for only date]&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:datetime&amp;lt;/code&amp;gt;&#039;&#039;&#039; [for date and time]&lt;br /&gt;
&lt;br /&gt;
=== Prevent nodes from showing on the diagram ===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Object: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
You can prevent nodes or modules from showing on the diagram of your model, by adding this flag to the AcpStyles attribute of the object you wish to hide. Once the model is shown in ACP the objects aren&#039;t visible.&lt;br /&gt;
&lt;br /&gt;
== Modifying ACP menus==&lt;br /&gt;
&lt;br /&gt;
Normally, ACP offers menus that appear when you press one of the three icons on the right of the top teal bar. These ACP styles let you modify these menus.&lt;br /&gt;
&lt;br /&gt;
===Disable Assista ===&lt;br /&gt;
To hide the Assista button in ACP4, add this to the [[AcpStyles]] for your top-level model:&lt;br /&gt;
*&amp;lt;code&amp;gt;Assista: no&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Assista was introduced to ACP with ACP4 (in 2027).&lt;br /&gt;
&lt;br /&gt;
===Hide the Save options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Hide_save_button: yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; Set this model ACP style option to exclude the  &#039;Save this model&#039; and &#039;Save model as...&#039; from the ACP Close menu. It prevents  users from saving over your models or saving other versions. &lt;br /&gt;
*&#039;&#039;This style cannot currently be set from the ACP style library, since it would allow users to show the save and save as menu options and then save changes even if the modeler does not want to allow it.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Remove Help menu items===&lt;br /&gt;
&lt;br /&gt;
These styles add menu items to or remove items from the help (?) menu if added to the AcpStyles of the top diagram of your model. For [[ACP_Server_License|ACP installations]]  on an intranet, these standard links may not be accessible. On the other hand you may want to offer a special help page for a particular model.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Remove_help_menu_options: Text&amp;lt;/code&amp;gt;&lt;br /&gt;
This style allows you to list one or more of the standard options to remove from the help (?) menu. Replace &amp;lt;code&amp;gt;Text&amp;lt;/code&amp;gt; with one or more of the following: &amp;lt;code&amp;gt;ACP_Online_docs, Analytica_Q_A_forum, Tech_support&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
(Note: The help menu item &amp;lt;code&amp;gt;Connection status&amp;lt;/code&amp;gt; cannot currently be removed).&lt;br /&gt;
&lt;br /&gt;
===Add Help menu item===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Add_help_menu_option: Text|URL&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
Adds another menu item, for example: &amp;lt;code&amp;gt;Add_help_menu_option: How to use this model...|https://www.lumina.com&amp;lt;/code&amp;gt; adds a menu item to the help (?) menu with the text &amp;quot;How to use this model...&amp;quot; and opens the link when clicked.&lt;br /&gt;
&lt;br /&gt;
===Add download this model to the Close menu===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
This AcpStyle is controlled by a setting in the [[Customizing_an_ACP_server#The_acpConfig.json_file|AcpConfig.json]] file. On Lumina&#039;s acp.analytica.com server it is turned on.&lt;br /&gt;
With this AcpStyle in the model, &#039;&#039;&amp;lt;code&amp;gt;&amp;quot;download this model&amp;quot;&amp;lt;/code&amp;gt;&#039;&#039; is added to the close menu at the top right of the ACP GUI.&lt;br /&gt;
When set, this will allow anyone to download the model - even a reviewer, and even from an email invite.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; (default if not set)&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download:Prompt_to_download_free&amp;lt;/code&amp;gt;&#039;&#039;&#039;.  This adds a popup dialog with a download link and prompt to download the Analytica free installer.&lt;br /&gt;
&#039;&#039;This style cannot be set from the ACP Style library, since it would allow reviewers to change the style and download the model, even if the modeler does not  want to allow that.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[ACP Style Library]] &lt;br /&gt;
* [[media:ACP style library.ana]]&lt;br /&gt;
* [[Analytica Cloud Platform]]&lt;br /&gt;
* [[ACP Rendering tables and graphs on the diagram]]&lt;br /&gt;
* [[Putting ACP in a Web Page]]&lt;br /&gt;
* [[Help balloons]]&lt;br /&gt;
* [[Attributes]]&lt;br /&gt;
* [[Manage attributes]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=AcpStyles&amp;diff=65915</id>
		<title>AcpStyles</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=AcpStyles&amp;diff=65915"/>
		<updated>2026-11-16T21:37:26Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: ER 22593 -- Assista in ACP4&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Analytica Cloud Platform]]&lt;br /&gt;
[[Category: Attributes]]&lt;br /&gt;
[[Analytica_Cloud_Player|&amp;lt;&amp;lt;Analytica Cloud Platform ]]&lt;br /&gt;
&lt;br /&gt;
::{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
ACP offers a wide variety of styles and options to control the look and functioning of the user interface. Many of these go beyond what is (currently) available in Desktop Analytica (DTA). &lt;br /&gt;
&lt;br /&gt;
The easiest way to set these styles and options is to use the [[ACP Style Library]], which you can load into your model within ACP from the hamburger menu.  As you change styles in ACP, you can see their effects immediately.  &lt;br /&gt;
&lt;br /&gt;
If you use the [[ACP Style Library]] you don&#039;t need to learn about the ACP Styles described below. The only reason to read the rest of this page is if you want to do something esoteric with AcpStyles, or use one of the few AcpStyles not accessible in the [[ACP_Style_Library]]. &lt;br /&gt;
&lt;br /&gt;
You can also load the  [[ACP Style Library]] in Analytica on the desktop from the &#039;&#039;&#039;Add Library...&#039; option from the &#039;&#039;&#039;File&#039;&#039;&#039; menu. But, you won&#039;t be able to see the effects until you upload the model into ACP.&lt;br /&gt;
&lt;br /&gt;
The styles and options are specified as keywords and tags in the AcpStyles  attribute. Most styles and options apply to the whole Model and are specified in the AcpStyles attribute of the Model.  When you want to specify special styles for individual modules or variables, you apply them to the ACPStyles attribute of the relevant object.&lt;br /&gt;
 &lt;br /&gt;
The easiest way to view and edit the AcpStyles  attribute in Desktop Analytica is to use the [[Attribute panel]].  Select AcpStyles  from the list of Attributes at the top of that panel. By default, AcpStyles is not shown in the [[Object window]], so you first need to set it to be shown either with the [[Object_Window|right click menu]] in the Object window, or in the [[Manage attributes|Attributes dialog]].  &lt;br /&gt;
&lt;br /&gt;
The AcpStyles  and their flags are not case sensitive.  &lt;br /&gt;
&lt;br /&gt;
When you put multiple flags in a AcpStyles attribute, put each flag on a separate line. &lt;br /&gt;
&lt;br /&gt;
== Model level styles  ==&lt;br /&gt;
&lt;br /&gt;
These styles apply to the entire model. You set them in the AcpStyles attribute for the Main Model. (They have no effect when set for a submodule.)&lt;br /&gt;
&lt;br /&gt;
=== Navigation style  ===&lt;br /&gt;
&lt;br /&gt;
These Navigation_style options control how a user can view and access the module hierarchy:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Outline&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Show an expandable tree of modules on the left of the ACP window, similar to the outline view in desktop Analytica (showing only modules not other objects). This is the default style when you upload a model with no ACP styles set or no Acp styles library embedded, or if you have not yet set the Navigation style in the Acp styles library. A navigation flag is not needed for this style, but if you want to explicitly set this style you can add &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Outline&amp;lt;/code&amp;gt;&#039;&#039;&#039; to the top diagram&#039;s AcpStyles attribute.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Top diagram only&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Show only the top diagram, with no Outline and no tabs. This lets you make a simple web application with a single UI page.  &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the next two  &#039;Tabbed application&#039; styles, each module in the main model becomes a tab. The order of the tabs follows the sequence of the module nodes in the main diagram, from  left to right then top to bottom. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The main modules in the top model appear as a row of tabs across the top of the window. Click a tab to show the diagram for that module. &lt;br /&gt;
&amp;lt;!--Remove for now* &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Two_top_tabs&amp;lt;/code&#039;&#039;&#039;&amp;gt; --  The main modules in the top model appear as a row of tabs. The submodules of the module whose tab is selected appear as a second row of tabs. Needs to be used with the style&#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;. --&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The main modules in the top model appear as a column of tabs on the left of the window. Click a tab to show the diagram for that module.&lt;br /&gt;
&amp;lt;!--Remove for now * &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style: Two_side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039;  -- The top tabs reflect the main modules in the top model. Clicking a top tab shows a a set of subtabs, reflecting the submodules of main module (tab) selected. Needs to be used with the style &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We describe each in more detail below.&lt;br /&gt;
&lt;br /&gt;
===Outline Tree===&lt;br /&gt;
&lt;br /&gt;
By default, when using the Outline Navigation style, ACP shows an expandable outline tree of modules on the left hand side of the window, similar to the Outline view in Analytica on the desktop. This makes it easy to navigate a model with an extensive hierarchy of modules. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_outline: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default, and unecessary for Outline Navigation style. It is generally redundant with other Navigation styles since the tabs or hierarchy show the same information, and the Outline takes up screen space. But you can add  it to the top diagram&#039;s AcpStyles attribute if you want to show the Outline tree with other Navigation styles.&lt;br /&gt;
&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Outline tree 6.0 01.png]]|{{CalloutAnnotation|Market model with&amp;lt;br&amp;gt;Outline Tree|v=80|pt=10,106}}}}&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; --  When using the Acp Style library this is set by default for Navigation styles other than Outline. For small models, and most web apps, you may want to suppress the Outline view even when using the Outline Navigation style. Do this by inserting this text into the top diagram&#039;s AcpStyles attribute (See image below). (If a model has only one diagram,  i.e. with no modules, it never shows the outline tree.)&amp;lt;br/&amp;gt;&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Outline tree 6.0 02.png]]|{{CalloutAnnotation|Market model with &amp;lt;br/&amp;gt;&#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;|v=80}}}}&lt;br /&gt;
&lt;br /&gt;
===Top Diagram Only===&lt;br /&gt;
&lt;br /&gt;
Set by adding &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_diagram_only&amp;lt;/code&amp;gt;&#039;&#039;&#039; to the AcpStyles attribute of the top diagram. &amp;lt;!--Not to be confused with the AcpStyles flag of similar name: &#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;. -This is a navigation style most easily set with the ACP styles library. --&amp;gt; The Styles library will set the flag &amp;lt;!--&#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only:yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;,--&amp;gt; &#039;&#039;&#039;&amp;lt;code&amp;gt;show_outline:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; .&lt;br /&gt;
&lt;br /&gt;
===Tabbed Module Navigation===&lt;br /&gt;
&lt;br /&gt;
As an alternative to the Outline view, you can set the &#039;&#039;&#039;&amp;lt;code&amp;gt;Navigation_style&amp;lt;/code&amp;gt;&#039;&#039;&#039; to use use a tabbed interface which is often more convenient and familiar for web applications. By default, the main model appears as the first tab. You can change this with the style [[AcpStyles_Attribute_Values#Exclude_the_top_level_diagram_from_tabs|show_as_tab:no]] described below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Replace this section with one that does not talk about two tabs for now - until they are implemented in ACP3 - There are four tabbed styles, Top_tabs and Two_top_tabs, with one or two rows of tabs across the top, respectively; and Side_tabs and Two_side_tabs with one or two columns of tabs down the side. Top_tabs works well if you have up to 5 to 8 modules in the main diagram (tabs), depending on the length of their titles and the width of the ACP window.  If you have a lot of modules, or they have long titles, it may be better to use Side_tabs.  If you have too many modules to fit at the top or side, you can use Two_top_tabs or Two_side_tabs. In those cases, you must organize the modules into a two-level hierarchy with logical groupings. &lt;br /&gt;
&lt;br /&gt;
&#039;Top tabs or side tabs.&#039; The first tab displays the top level diagram, and the remaining tabs display the modules present on the top level diagram of the model.  (The modules will not display on the diagram, so you need to tweak your diagram for playing in ACP so that it looks right without these present). The size of the diagram is determined by the size of the top level diagram window when the model was last saved in Analytica.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; This setting instructs ACP to use the &#039;Tabs across top&#039; navigation style.&lt;br /&gt;
&lt;br /&gt;
:[[File:Top tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; This setting instructs ACP to use the &#039;Side tabs&#039; navigation style.  Side tabs work better than top tabs when there are more module nodes present.&lt;br /&gt;
&lt;br /&gt;
:[[File:Side tabs 6.0 01.png]]&lt;br /&gt;
* &amp;lt;code&amp;gt;Navigation_style: Two_top_tabs&amp;lt;/code&amp;gt; &lt;br /&gt;
* &amp;lt;code&amp;gt;Navigation_style: Two_side_tabs&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;These 2 Navigation styles replace the style  &amp;lt;code&amp;gt;two_tiers_tabs:yes&amp;lt;/code&amp;gt; which has been deprecated.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
These styles are useful for modules with several layers of modules and submodules - to reduce the clutter of the top layer of tabs. Modules in the model&#039;s top diagram appear as top tabs (left tabs).  Modules within those top level modules appear as subtabs,  the &#039;second tier&#039;. When you select a top-level tab, it shows its submodules as subtabs. This means that the top level of modules will not show any contents other than their submodules, so the model needs to be designed with this in mind.&lt;br /&gt;
*Currently these 2 styles must be used with the &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; style set. &amp;lt;!--Coming soon: Compatibility with &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
*The selected tab appears with the color of the diagram background of it&#039;s module&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
There are two tabbed styles, Top_tabs, with a row of tabs across the top; and Side_tabs with a column of tabs down the side. Top_tabs works well if you have up to 5 to 8 modules in the main diagram (tabs), depending on the length of their titles and the width of the ACP window.  If you have a lot of modules, or they have long titles, it may be better to use Side_tabs.  &lt;br /&gt;
&lt;br /&gt;
&#039;Top tabs or side tabs.&#039; The first tab displays the top level diagram, and the remaining tabs display the modules present on the top level diagram of the model.  (The modules will not display on the diagram, so you need to tweak your diagram for playing in ACP so that it looks right without these present). &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: top_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- This setting instructs ACP to use the &#039;Tabs across top&#039; navigation style.&lt;br /&gt;
&lt;br /&gt;
[[File:Top tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;navigation_style: side_tabs&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- This setting instructs ACP to use the &#039;Side tabs&#039; navigation style.  Side tabs work better than top tabs when there are more module nodes present.&lt;br /&gt;
&lt;br /&gt;
[[File:Side tabs 6.0 01.png]]&lt;br /&gt;
&lt;br /&gt;
=== Toolbar Tabs ===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- By default, with the Outline Navigation style. ACP shows navigation tabs for &amp;quot;Diagram&amp;quot;, &amp;quot;Object&amp;quot;, &amp;quot;Table&amp;quot;, &amp;quot;Graph&amp;quot; along the top. Use this flag to hide those tabs. If you display the model inputs and outputs on the diagram -- using embedded tables and graphs on the diagram -- your users may not need those tabs.  (You can also use &#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; to explicitly show the tabs in Outline and Top diagram only Navigation styles.) &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_toolbar: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- A synonym for &#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;. Either style hides these tabs, and either one set to &#039;&#039;&#039;&amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; shows them.&lt;br /&gt;
{{CalloutAnnotationBlock|[[File:Show tabs no 6.0 0.1.png]]|{{CalloutAnnotation|Market model with &amp;lt;br/&amp;gt;&#039;&#039;&#039;&amp;lt;code&amp;gt;show_tabs: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;|v=80|pt=232,37|path=t!-}}}}&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Module hierarchy bar ===&lt;br /&gt;
Using tabbed navigation, ACP shows the model hierarchy in a bar at the top of the diagram by default. The model hierarchy header shows you where you are in a large model by listing the titles of the ancestor modules in which the current diagram is nested.  You can click any ancestor to click up levels in the hierarchy. The Hierarchy Bar takes up much less screen real estate than the Outline Tree. ACP doesn&#039;t show the hierarchy bar when you are viewing a top level module, or if the module title is already in the selected tab. &amp;lt;!--With a two-level tab navigation, it shows the hierarchy bar only when viewing a module nested 3 or more levels down. Basically, the hierarchy header does not duplicate what you can see in the tabs.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this setting is not based on a AcpStyles attribute, but rather on the &#039;&#039;Show module hierarchy&#039;&#039; check box in the model [[Preferences]] in Analytica.  If you want to set this preference manually, with the model opened in Analytica, on the [[Edit menu]], select &#039;&#039;&#039;Preference...&#039;&#039;&#039;, and check (or uncheck) the &#039;&#039;Show module hierarchy&#039;&#039; checkbox. &lt;br /&gt;
&lt;br /&gt;
If you are using the ACP styles library, the Styles library will set this to the default setting automatically once you select a Navigation style. But you have the option of changing it if, for instance you want to show the Outline and the Hierarchy bar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--:[[Image:Acp hh.png]]--&amp;gt;&lt;br /&gt;
===Auto zoom ===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagrams: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- ACP automatically zooms the UI to fit the browser window -- the most constraining of width or height so it retains the aspect ratio of the diagram. Works with zoom in and zoom out. Auto Zoom will allow a model to go down to 50% of its size or up to 200% of its size. If the model does not fit at 50% size, the window will show scroll bars. This Acp style has no effect if &#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:Yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; is present, you can use only one or the other. You can also set &#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagrams: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; which is the default. (This is a model level setting and is added to the top diagram of a model).&lt;br /&gt;
&lt;br /&gt;
===Customize zoom levels===&lt;br /&gt;
AcpStyles for controlling the max/min zoom when &#039;&#039;&#039;&amp;lt;code&amp;gt;auto_zoom_diagram: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; is set. The default if these styles are not set is as above - 50% and 200%. The easiest way to set these is with the [[ACP_Style_Library]] - where the controls are in the Esoteric ACP styles module. This is available from the Hamburger menu in ACP. Note that in order to see this effect, the &#039;&#039;&#039;&amp;lt;code&amp;gt;Browser window size&amp;lt;/code&amp;gt;&#039;&#039;&#039; needs to have the screen size pulldown menu set to &#039;&#039;&#039;&amp;lt;code&amp;gt;Auto zoom&amp;lt;/code&amp;gt;&#039;&#039;&#039; as well. &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;zoom_min_percent: 75&amp;lt;/code&amp;gt;&#039;&#039;&#039; (means that the minimum zoom level will be 75% or .75)&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;zoom_max_percent: 125&amp;lt;/code&amp;gt;&#039;&#039;&#039; (means the that max zoom level will be 125% or 1.25)&lt;br /&gt;
&lt;br /&gt;
===Use top diagram size for all ACP windows===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:Yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; --  Sets the size of all diagrams based on the size of the diagram window of the top level when the model was last viewed in Desktop Analytica (in non-maximized mode).  &#039;&#039;&#039;&amp;lt;code&amp;gt;Use_top_diagram_size:No &amp;lt;/code&amp;gt;&#039;&#039;&#039; is the same as if the flag is not set, and is the default  - the ACP diagram will use the entire browser window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Not in ACP3 yet - ER519&lt;br /&gt;
===Display Only a Single Diagram===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;top_diagram_only: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Use this flag if you want to restrict users access to only the top diagram. With this flag, any action that would normally bring up a different diagram will just reload the top diagram.  (If you are using this setting, you will also want to also not display the Outline Tree as explained above, since clicking on the modules in the Outline will have no effect.)&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
===Show or hide the Dashboard Title and Model title===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_model_title: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Hide the title of the model, which appears by default in the top Teal bar.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_diagram_title: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; --  Use  to show the dashboard title at the top of the diagram. Or &amp;lt;code&amp;gt;show_diagram_title: no&amp;lt;/code&amp;gt; to suppress the diagram title, but not really necessary because ACP does not show the diagram title by default.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
===Hide the Banner and Logo===&lt;br /&gt;
Another flag it&#039;s easier to use the [[ACP Style Library]] to set, since it is only compatible with the toolbar tabs hidden. The Styles library changes all the flags at once, and prevents you from entering incompatible combinations.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_banner: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Hides the banner space usually present at the top of ACP. The banner typically contains the Lumina Logo, the &#039;&#039;&#039;Parent Diagram&#039;&#039;&#039; button, tabs, &#039;&#039;&#039;Close Model&#039;&#039;&#039; button, and &#039;&#039;&#039;Save&#039;&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
:*This could be useful for customizing the appearance of a model [[Putting_ACP_in_a_Web_Page|embedded in a web page]], for instance.&lt;br /&gt;
:[[File:Banner area 01.PNG]]&lt;br /&gt;
:*If you play a model without the banner area in ACP, there isn&#039;t a convenient way to close the model without closing the browser.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exclude diagram(s) from tabs===&lt;br /&gt;
&lt;br /&gt;
When using tabbed navigation, you can select those modules (from the top model diagram) that you want to appear as a tab in ACP. The default is for all to appear as tabs. You should use the &#039;&#039;Show modules as tabs&#039;&#039; choice menu in the &#039;&#039;&#039;&amp;lt;code&amp;gt;ACP Navigation styles&amp;lt;/code&amp;gt;&#039;&#039;&#039; section of the [[ACP Style Library]] if you want to set this flag,, and if you also want to hide the modules corresponding to these tabs [[ChangeNodeVisibility|hidden]], so that the model viewer cannot see them.&lt;br /&gt;
&lt;br /&gt;
*Optionally, Enter the text &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; in the AcpStyles attribute of the modules you don&#039;t wish to show as a tab. The modules themselves will not be hidden with this setting, only the tabs.&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Excludes the top level diagram and just shows the submodules of the top level diagram as tabs. Since the top diagram will not display in ACP, you include the key user interface pages as modules in the main model. Can be used only with &#039;Top tabs&#039; or &#039;Side tabs&#039; styles. &lt;br /&gt;
*When setting tabbed Navigation styles using the ACP Styles Library, the default is for the Top level diagram to be included, except with two tiers of tabs, for which it is (Currently) required to exclude the top diagram from the tabs.&lt;br /&gt;
&lt;br /&gt;
If you want to see what it looks like, play this model [[Media:Show as tab no.ana|Array examples]] in ACP, with the &#039;&#039;&#039;&amp;lt;code&amp;gt;show_as_tab: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; style in the AcpStyles  attribute, and set to tabs along top.&lt;br /&gt;
&lt;br /&gt;
:[[File:Show as tab no02.png]]&lt;br /&gt;
&lt;br /&gt;
*Play this model in ACP and the top level diagram does not show. Rather the diagram for &#039;Intro to Arrays&#039; shows as the first tab and then the other tabs.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:[[File:Show as tab no01.png]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
===Tab color===&lt;br /&gt;
&lt;br /&gt;
When using Tabbed Navigation, you can use these flags to control how the color of the tabs display on your model in ACP. To use, add one of them to the AcpStyles attribute of the top level diagram of your model. They have no effect if added to a module other than the top diagram.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Default &amp;lt;/code&amp;gt;&#039;&#039;&#039; The default. Non-selected tabs are bluish white. The selected tab uses the background color for that diagram.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Background &amp;lt;/code&amp;gt;&#039;&#039;&#039; All tabs use their diagram background color, whether selected or not&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Tab_color: Node &amp;lt;/code&amp;gt;&#039;&#039;&#039;  The selected Tab uses its diagram background color; The other tabs use the color of their Module node (not their diagram background color).  You can use this to change the color of the tabs by modifying their node color in an Analytica functions.&lt;br /&gt;
&lt;br /&gt;
== Model level styles for diagram nodes. ==&lt;br /&gt;
&lt;br /&gt;
These model-level styles affect how all nodes are displayed in diagrams.  &lt;br /&gt;
===Default view for Frame nodes===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Frame_default_view:object&amp;lt;/code&amp;gt;&#039;&#039;&#039; Shows the default view as the object view for all frame nodes (until  you click another option e.g. graph or table) . &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Frame_default_view:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; The default.&lt;br /&gt;
=== Node shadows and bevels  ===&lt;br /&gt;
&lt;br /&gt;
By default ACP displays nodes without shadows or bevels (for now) , so they look like this:&lt;br /&gt;
:[[Image:Nodes no shadow or bevel.png]] &lt;br /&gt;
&lt;br /&gt;
Set this flag to show a drop shadow behind each node, giving a kind of 3D effect:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;node_drop_shadow: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:[[Image:Nodes drop shadow.png]] &lt;br /&gt;
&lt;br /&gt;
Set this flag to display a bevel border for each node, giving another kind of 3-D effect: &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;bevel_node_border: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
:[[Image:Nodes beveled border.png]] &lt;br /&gt;
&lt;br /&gt;
===Node hover highlighting===&lt;br /&gt;
&lt;br /&gt;
By default, ACP displays a highlight -- a contrasting light rectangle behind a node -- when you move the cursor over the node:&lt;br /&gt;
&lt;br /&gt;
[[File:acp hover hl.png]]&lt;br /&gt;
&lt;br /&gt;
You can switch it off by setting:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_highlight: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
=== Balloon Help  ===&lt;br /&gt;
&lt;br /&gt;
When you move the cursor over a node, ACP usually shows a &amp;quot;balloon&amp;quot; popup next to the node with the description of the node (if it has one) to help end users understand what its for, or what to enter for a user input. If the node has no description, the [[help balloons|balloon help]] will not appear.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_id_in_balloon: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; Use this flag to show each node&#039;s identifier below its title in the balloon -- unless the identifier and title are identical (except for spaces which are replaced by underscores). This flag goes in the AcpStyles of the model and apply to all nodes in the model.&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_definition_in_balloon: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::Use this flag to show the node&#039;s definition in the balloon below the description.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;hover_balloon_delay&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
::When you mouse over a node, there&#039;s a short delay of about half a second before it displays the balloon (to prevent wild balloon appearance when you move the cursor rapidly over a diagram.) You can tweak this delay time measured in milliseconds by inserting this flag. E.g. &#039;&#039;&#039;&amp;lt;code&amp;gt;hover_balloon_delay: 200&amp;lt;/code&amp;gt;&#039;&#039;&#039; to reduce the delay to .2 seconds.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
The flags above go in the AcpStyles of the model and apply to all nodes in the model. You can also modify some aspects of the balloon separately for each node by inserting these flags in AcpStyles for each node: --&amp;gt;&lt;br /&gt;
&amp;lt;!-- not implemented in ACP3 &lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_balloon: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
::Insert this flag in the AcpStyles for a node, to suppress display of its balloon. --&amp;gt;&lt;br /&gt;
&amp;lt;!--title no longer shows in the balloon&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;show_hover_balloon_title: no&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
::Insert this flag in the AcpStyles for a node, to suppress its title in the balloon.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flex box diagram layout===&lt;br /&gt;
&lt;br /&gt;
By default, ACP places every node at the position it has in the Analytica diagram. As an alternative, you can lay a diagram out as a &#039;&#039;flex box&#039;&#039;, in which the nodes flow across the diagram and wrap onto more lines as the browser window changes size. Unlike most of the styles above, you set this on the AcpStyles attribute of the module whose diagram you want laid out this way, so different diagrams in one model can use different layouts.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;display: flex&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Lay this diagram out as a flex box.&lt;br /&gt;
&lt;br /&gt;
Frame nodes, tall form nodes and text nodes become the items of the flex box. ACP does not draw influence arrows on a flex diagram.&lt;br /&gt;
&lt;br /&gt;
These styles adjust the layout. They have no effect unless &#039;&#039;&#039;&amp;lt;code&amp;gt;display: flex&amp;lt;/code&amp;gt;&#039;&#039;&#039; is also set on the same diagram:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_direction: row&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Items flow from left to right. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;flex_direction: column&amp;lt;/code&amp;gt;&#039;&#039;&#039; to make them flow from top to bottom.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_wrap: wrap&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Items wrap onto more lines when they don&#039;t fit. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;flex_wrap: no_wrap&amp;lt;/code&amp;gt;&#039;&#039;&#039; to keep them all on one line.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_h_align: left&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;&#039;&#039;&#039; or &#039;&#039;&#039;&amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;&#039;&#039;&#039; to change the horizontal alignment of the items.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_v_align: top&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default. Use &#039;&#039;&#039;&amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;&#039;&#039;&#039; or &#039;&#039;&#039;&amp;lt;code&amp;gt;bottom&amp;lt;/code&amp;gt;&#039;&#039;&#039; to change the vertical alignment of the items.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_gap: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The spacing around each item. ACP divides &#039;&#039;n&#039;&#039; by four to get the margin and the padding in pixels, so the default of 16 gives four pixels of each. Set this one on the top model rather than on the individual diagram.&lt;br /&gt;
&lt;br /&gt;
You can include or exclude an individual node by setting this style in the AcpStyles attribute of that node:&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_box_item: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Make this node an item of the flex box even though it would not otherwise be one.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;flex_box_item: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Keep this node out of the flex box.&lt;br /&gt;
&lt;br /&gt;
===Background of text input boxes===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;text_inputs_white: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The box for typing into a text input node takes the background color of the node it sits on. By default, &#039;&#039;&#039;&amp;lt;code&amp;gt;text_inputs_white: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;, the box is white. This is a model level style - it needs to be entered into the AcpStyle of the top model.&lt;br /&gt;
&lt;br /&gt;
==ACP styles inheritance==&lt;br /&gt;
This is the order of inheritance for Acpstyles below that apply to tables and graphs. Styles at a higher level take precedence over the lower precedence styles. (Inheritance doesn&#039;t apply to the ACPstyles described above tbecause they work only at the Model level.)&lt;br /&gt;
# &#039;&#039;&#039;Variable&#039;&#039;&#039; (includes Tall nodes): Acpstyles applied to an individual variable will take precedence over all other styles. A variable with a style of &amp;lt;code&amp;gt;show_title:no&amp;lt;/code&amp;gt; will not show the title, even if the model level style is &amp;lt;code&amp;gt;show_title:yes&amp;lt;/code&amp;gt;, and if that node shows it&#039;s result in a frame node the variable style will override the frame node style.&lt;br /&gt;
# &#039;&#039;&#039;Frame&#039;&#039;&#039; : An Acpstyle set for a frame node will affect any variable shown in that frame that doesn&#039;t have its own settings. These will also override any styles at the model level.&lt;br /&gt;
# &#039;&#039;&#039;Model ACP style defaults&#039;&#039;&#039;: Acpstyles that you can enter into the Acptyles attribute of the top diagram of your model. These will override the ACP defaults, and will be inherited by frame nodes and variables in the model that don&#039;t have their own Acpstyle.&lt;br /&gt;
# &#039;&#039;&#039;ACP style defaults for ACP&#039;&#039;&#039;: The default style ACP uses if you have no specific setting for that style. Eg for show_index_menus the default is fly-in and that is what will show if you don&#039;t enter a different show_index_menus: Acpstyle flag in the Acpstyle for the top diagram (model level) or for frame nodes or variables.&lt;br /&gt;
&lt;br /&gt;
==ACP Styles for tables and graphs==&lt;br /&gt;
&lt;br /&gt;
These styles affect how result graphs and tables are displayed in ACP, including in [[Embed_table_or_graph_with_ACP#Frame_nodes|Tall nodes]] and [[Embed_table_or_graph_with_ACP#Tall_nodes|˞Frame nodes]]. They provide options not (yet) available in Desktop Analytica. ACP has default settings for these. You can override these settings for the entire model. You can also set them for [[Embed_table_or_graph_with_ACP#Frame_nodes|˞Frame nodes]], which will apply to all results shown in the Frame and override the ACP and model level settings. And you can set these styles for individual variables, which will override any settings in the Model or Frame. As always, it&#039;s easiest to set the using the [[ACP Style Library]]. &lt;br /&gt;
&lt;br /&gt;
None of these styles apply to tab result views using the default Navigation_style: Outline.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Description===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_description: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; If &amp;lt;code&amp;gt;n &amp;gt; 0 &amp;lt;/code&amp;gt; it shows the Description of the variable above the table or graph using up to n% of the vertical space available. If that&#039;s not big enough to show the entire description, it shows a vertical scroll bar. Iif you don&#039;t want to show the description at all, set &amp;lt;code&amp;gt;n = 0&amp;lt;/code&amp;gt;. Default if not mentioned, is one third, i.e. &amp;lt;code&amp;gt;Show_description: 33&amp;lt;/code&amp;gt;.  You can set this style at the model level for all Frame or Tall nodes, and you can override this default for any individual node.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Object view icon===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_Frame:yes/no&amp;lt;/code&amp;gt;&#039;&#039;&#039;: With this style set, it shows an object view hover icon at the top right of a frame node or tall node when showing a graph or table view. Click this icon to show the object window view. The object view shows the Table and Graph hover icon to go back to the table or graph view.  You can set &#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_frame&amp;lt;/code&amp;gt;&#039;&#039;&#039; style at either the top level of the model or in an individual frame node, which overrides the top level setting. When working with tall nodes, you can set &#039;&#039;&#039;&amp;lt;code&amp;gt;Object_in_frame&amp;lt;/code&amp;gt;&#039;&#039;&#039; style at the top level or in the original variable&#039;s ACP style setting, which overrides the top level setting.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the title===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_title&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Set &amp;lt;code&amp;gt;Show_title: yes&amp;lt;/code&amp;gt; to show or &amp;lt;code&amp;gt;Show_title: no&amp;lt;/code&amp;gt; to stop showing the Title and units of a selected variable. This style can be used at the model level, for frame nodes or for individual nodes, but controls  whether or not the Title and units show in Frame nodes or tall nodes. &lt;br /&gt;
&lt;br /&gt;
===Show or hide the Graph-Table icon===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_graph_table_icon:no&amp;lt;/code&amp;gt;&#039;&#039;&#039; Hides the icon in the top right of a Result that lets you toggle between Graph and Table view. This applies to [[Embed_table_or_graph_with_ACP|Frame nodes and tall nodes]]. This style can be used for  the entire model, for frame nodes or for individual nodes . You set them in the AcpStyles attribute.  Conversely, you can set  &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_graph_table_icon:yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;. This is the default so not usually necessary at the model level, but can be used in a frame node or variable to override the model default or override a frame node setting.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Uncertainty view menu===&lt;br /&gt;
By default, in ACP, as in desktop Analytica, the [[Uncertainty views]] menu appears above each result graph or table to let you select [[Mid]] to display its deterministic value, or Mean, Probability distribution, and other ways to display a probabilistic value.  &lt;br /&gt;
&lt;br /&gt;
You can override this default behavior with this ACP style for the entire model, [[Embed_table_or_graph_with_ACP#Frame_nodes|Frame nodes]], or for individual variables. The Uncertainty view menu is always present in tab result views.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; Never show the uncertainty menu in frame nodes or tall result nodes. Suitable for models with no probabilistic values, or if you want to fix a particular probabilistic view for each frame node or variable so that ACP users can&#039;t change it.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: Yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; Always show the uncertainty menu even for variables that are not probabilistic, as in Desktop Analytica. This is the default and not normally necessary at the model level, but can be used to customize which frame nodes or variables to show the uncertainty view menu when the model level style is set to &#039;&#039;&#039;&amp;lt;code&amp;gt;Show_uncertainty_view: No&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Index menus and Pivoters/slicers===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Fly-in&amp;lt;/code&amp;gt;&#039;&#039;&#039; By default (the same as if there is no show_index_menu: setting) the index menus are not shown in [[https://wiki.analytica.com/index.php?title=Embed_table_or_graph_with_ACP|frame nodes or tall nodes]] (but slicers are), since often the modeler has already chosen the pivot they want to use. And because these menus take up valuable screen space. But if you hover over the frame node (or tall node) there is a fly-in pivoter control. If you click this it toggles - on or off - the visibility of the pivoters; allowing you to pivot the result table or graph and then close the pivoters to give you more space.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; If you do want to allow users to be able to pivot or change the slice of the table or graph, without using the fly-in, then use use show_index_menus:yes. Always present in tab result views.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: No&amp;lt;/code&amp;gt;&#039;&#039;&#039; If show_index_menus:no is set then the indexes and pivoters will not show and there is no fly-in, but the slicers will still be present.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_index_menus: Not_even_slicers&amp;lt;/code&amp;gt;&#039;&#039;&#039; If you don&#039;t want to show any pivoters or slicers, you can set show_index_menus:Not_even_slicers.&lt;br /&gt;
&lt;br /&gt;
===Table filtering===&lt;br /&gt;
(For result tables only)&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Table_Filtering: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; Turns off the ability to filter result tables by column, and reverts to the previous sort functionality. [[Tables_in_ACP#Sort_columns]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Table_Filtering: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; The default - shows the table filtering icons in result tables.&lt;br /&gt;
&lt;br /&gt;
===Show or hide the Rows and Columns pivot controls===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_row_col_header: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Hides the &amp;quot;Rows&amp;quot; and &amp;quot;Columns&amp;quot; pivot controls above a result table, while still showing any slicers.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_row_col_header: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The default.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- No effect in the new Table UI&lt;br /&gt;
===Position of the row pivoter===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;row_pivoter_loc: header&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Puts the pivoter for the row index inside the top left header cell of the table itself, rather than among the pivot controls above the table. Set it for the model, or for an individual variable to move the pivoter of just that table. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Links from table headers===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;blue_handle_links: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- A row or column header whose value is a handle to an object normally appears as a blue link, and clicking it jumps to that node in its diagram. This style shows those headers as ordinary text instead. It is a model level style.&lt;br /&gt;
*Note this has no effect on graph labels.&lt;br /&gt;
&lt;br /&gt;
===Very large tables===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;acp_large_table_scroll: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- Turns on virtual scrolling, so that ACP fetches and renders only the cells of a table that are actually in view. This makes a very large table usable. It applies only to tables bigger than the cell limit configured on the ACP server. Set it for the model, or for an individual variable.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;acp_max_table_size_to_show: n&amp;lt;/code&amp;gt;&#039;&#039;&#039; -- The largest number of body cells (rows times columns) that ACP shows in a table. A bigger table is truncated. When you don&#039;t set it, the limit configured in the [[Customizing_an_ACP_server#The_acpConfig.json_file|AcpConfig.json]] file applies. This is a model level style.&lt;br /&gt;
&lt;br /&gt;
===Autocalc===&lt;br /&gt;
&lt;br /&gt;
In the  [[ACP Style Library]], Autocalc looks like a style you can set for a model, module or variable. It controls whether ACP evaluates each variable and shows its results automatically when you view a Diagram or tab showing the -- instead of the default Analytica behavior where the end user has to click on a Calc button to compute a result.  With Autocalc on, a result in view also recomputes automatically when you change an input that influences it.&lt;br /&gt;
&lt;br /&gt;
Autocalc is not actually an ACPStyle in ACP3. (It was in ACP1.)  Autocalc is implemented using the Desktop Analytica functionality  for [[Proactive_Evaluation]].&lt;br /&gt;
&lt;br /&gt;
== Node Level Settings  ==&lt;br /&gt;
&lt;br /&gt;
These style flags and options apply to individual nodes (variables), rather than the model as a whole. So, you set these flags on the AcpStyles for selected objects (nodes).&lt;br /&gt;
&lt;br /&gt;
=== Other node level flags ===&lt;br /&gt;
&lt;br /&gt;
===Date Picker===&lt;br /&gt;
Show a date picker for input nodes.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:none&amp;lt;/code&amp;gt;&#039;&#039;&#039; [default]&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:date&amp;lt;/code&amp;gt;&#039;&#039;&#039; [for only date]&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;date_picker:datetime&amp;lt;/code&amp;gt;&#039;&#039;&#039; [for date and time]&lt;br /&gt;
&lt;br /&gt;
=== Prevent nodes from showing on the diagram ===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Show_Object: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
You can prevent nodes or modules from showing on the diagram of your model, by adding this flag to the AcpStyles attribute of the object you wish to hide. Once the model is shown in ACP the objects aren&#039;t visible.&lt;br /&gt;
&lt;br /&gt;
== Modifying ACP menus==&lt;br /&gt;
&lt;br /&gt;
Normally, ACP offers menus that appear when you press one of the three icons on the right of the top teal bar. These ACP styles let you modify these menus.&lt;br /&gt;
&lt;br /&gt;
===Disable Assista ===&lt;br /&gt;
To hide the Assista button in ACP4, add this to the [[AcpStyles]] for your top-level model:&lt;br /&gt;
:&amp;lt;code&amp;gt;Assista: no&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Assista was introduced to ACP with ACP4 (in 2027). &lt;br /&gt;
&lt;br /&gt;
===Hide the Save options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Hide_save_button: yes &amp;lt;/code&amp;gt;&#039;&#039;&#039; Set this model ACP style option to exclude the  &#039;Save this model&#039; and &#039;Save model as...&#039; from the ACP Close menu. It prevents  users from saving over your models or saving other versions. &lt;br /&gt;
*&#039;&#039;This style cannot currently be set from the ACP style library, since it would allow users to show the save and save as menu options and then save changes even if the modeler does not want to allow it.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Remove Help menu items===&lt;br /&gt;
&lt;br /&gt;
These styles add menu items to or remove items from the help (?) menu if added to the AcpStyles of the top diagram of your model. For [[ACP_Server_License|ACP installations]]  on an intranet, these standard links may not be accessible. On the other hand you may want to offer a special help page for a particular model.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Remove_help_menu_options: Text&amp;lt;/code&amp;gt;&lt;br /&gt;
This style allows you to list one or more of the standard options to remove from the help (?) menu. Replace &amp;lt;code&amp;gt;Text&amp;lt;/code&amp;gt; with one or more of the following: &amp;lt;code&amp;gt;ACP_Online_docs, Analytica_Q_A_forum, Tech_support&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
(Note: The help menu item &amp;lt;code&amp;gt;Connection status&amp;lt;/code&amp;gt; cannot currently be removed).&lt;br /&gt;
&lt;br /&gt;
===Add Help menu item===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;Add_help_menu_option: Text|URL&amp;lt;/code&amp;gt;&#039;&#039;&#039; &lt;br /&gt;
Adds another menu item, for example: &amp;lt;code&amp;gt;Add_help_menu_option: How to use this model...|https://www.lumina.com&amp;lt;/code&amp;gt; adds a menu item to the help (?) menu with the text &amp;quot;How to use this model...&amp;quot; and opens the link when clicked.&lt;br /&gt;
&lt;br /&gt;
===Add download this model to the Close menu===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download: yes&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
This AcpStyle is controlled by a setting in the [[Customizing_an_ACP_server#The_acpConfig.json_file|AcpConfig.json]] file. On Lumina&#039;s acp.analytica.com server it is turned on.&lt;br /&gt;
With this AcpStyle in the model, &#039;&#039;&amp;lt;code&amp;gt;&amp;quot;download this model&amp;quot;&amp;lt;/code&amp;gt;&#039;&#039; is added to the close menu at the top right of the ACP GUI.&lt;br /&gt;
When set, this will allow anyone to download the model - even a reviewer, and even from an email invite.&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download: no&amp;lt;/code&amp;gt;&#039;&#039;&#039; (default if not set)&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;code&amp;gt;save_menu_download:Prompt_to_download_free&amp;lt;/code&amp;gt;&#039;&#039;&#039;.  This adds a popup dialog with a download link and prompt to download the Analytica free installer.&lt;br /&gt;
&#039;&#039;This style cannot be set from the ACP Style library, since it would allow reviewers to change the style and download the model, even if the modeler does not  want to allow that.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[ACP Style Library]] &lt;br /&gt;
* [[media:ACP style library.ana]]&lt;br /&gt;
* [[Analytica Cloud Platform]]&lt;br /&gt;
* [[ACP Rendering tables and graphs on the diagram]]&lt;br /&gt;
* [[Putting ACP in a Web Page]]&lt;br /&gt;
* [[Help balloons]]&lt;br /&gt;
* [[Attributes]]&lt;br /&gt;
* [[Manage attributes]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.1%3F&amp;diff=65914</id>
		<title>What&#039;s new in Analytica 7.1?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.1%3F&amp;diff=65914"/>
		<updated>2026-11-16T14:37:16Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: 7.2 release, so this in no longer the official release&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--Analytica 7.1 is currently under development, and will be the next future release of Analytica. The current official release is [[Analytica 7.0]]. This page is under construction, and will list enhancements that are new to Analytica or ADE 7.1.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Analytica release 7.1 is currently in late-stage [[Beta Tester Page|Beta Testing]].  If you have a paid desktop Analytica subscription, we encourage you to try it out from the [[Beta Tester Page]].--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This page lists new features in Analytica 7.1 since the previous [[Analytica 7.0]]. Its successor, [[Analytica 7.2]] has been released, making this a past (non-current) release.&lt;br /&gt;
&lt;br /&gt;
Analytica 7.1 brings a much smarter [[#Assista|Assista]], faster loading of large models, a Spanish user interface, easier ways to bring in data, and a more polished look. Here&#039;s what&#039;s new since [[Analytica 7.0]].&lt;br /&gt;
&lt;br /&gt;
== Highlights of Analytica 7.1 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Assista|Assista]]:&#039;&#039;&#039; By far the most visible improvement is in [[#Assista|Assista]], Analytica&#039;s A.I. collaborator. When first released in Analytica 6.5, Assista was already useful for explaining Analytica features, describing and documenting models, and building models, but it was a bit unreliable with Analytica syntax and arranging influence diagrams. The new version is so much smarter and more reliable that you may find chatting with Assista becomes the main way you work with Analytica. The familiar influence diagram interface is still there whenever you want it — and now Assista is pretty good at drawing diagrams and writing Analytica expressions for you.&lt;br /&gt;
&lt;br /&gt;
[[File:Assista chat window answering What kinds of things can you do.png|alt=Assista chat window answering &amp;quot;What kinds of things can you do?&amp;quot;|thumb|540px|Ask Assista what it can do, in your own words.]]&lt;br /&gt;
It&#039;s also faster, looks better, shows a trace of its thinking, remembers your conversations from previous sessions, reads files you give it (text, PDF, CSV, Excel and more), understands images and diagrams, and has a set of skills you can extend and customize.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Internals|Performance]]:&#039;&#039;&#039; Large models open much faster, because Analytica now parses definitions on multiple threads at once. Arrays now use a &#039;&#039;tensor&#039;&#039; representation, similar to AI frameworks like PyTorch and TensorFlow, but with Index labels that support [[Intelligent Arrays]]. You won&#039;t notice this change directly — but it lays the groundwork for major speed improvements in future releases.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#CSV files and Spreadsheets|CSV and spreadsheet files]]:&#039;&#039;&#039; Import a CSV file simply by dragging it onto a diagram, or by naming it on the command line when you start Analytica. You can also create a new [[#Expanded Spreadsheet functions|spreadsheet]] and add or remove sheets from it.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#More languages: Spanish UI|¡Español!]]:&#039;&#039;&#039; The user interface now comes in Spanish, with more languages to follow. Assista already speaks most languages, and can explain features (translating the docs) in yours.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#MCP server for LLMs|MCP access for LLMs]]:&#039;&#039;&#039; An MCP (Model Context Protocol) server is a standard way for AI assistants to securely use software tools, data, and applications. Analytica and ADE offer MCP access from standard LLMs, such as ChatGPT and Claude.&lt;br /&gt;
&lt;br /&gt;
== Assista ==&lt;br /&gt;
[[Assista]], the AI collaborator in Analytica, is dramatically improved in this release.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;float:right; margin-left:1em; width:300px&amp;quot;&lt;br /&gt;
! Try asking Assista...&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&amp;quot;What kinds of things can you do?&amp;quot;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&amp;quot;Build me a model to decide whether to lease or buy a car.&amp;quot;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&amp;quot;Explain what this variable does and why its result looks odd.&amp;quot;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&amp;quot;Turn the tables in this PDF into Analytica tables.&amp;quot;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&amp;quot;Write a short user guide for this model as a Word document.&amp;quot;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===New Assista user interface===&lt;br /&gt;
* The &#039;&#039;&#039;chat window&#039;&#039;&#039; is faster and more responsive, with a new look and feel and clearly formatted responses. Keep it on the right side of the Analytica window, or move it anywhere on your screen(s) to make best use of screen space.&lt;br /&gt;
* &#039;&#039;&#039;Highlight, drag, and copy&#039;&#039;&#039; any text to paste elsewhere.&lt;br /&gt;
* Click the &#039;&#039;&#039;microphone button&#039;&#039;&#039; to speak your request. Click it again when you&#039;re done.&lt;br /&gt;
* Selected objects in the Analytica window &#039;&#039;&#039;stay selected&#039;&#039;&#039; as you type into Assista, so you can refer to them as &amp;quot;this variable&amp;quot; and so on.&lt;br /&gt;
* It shows its &#039;&#039;&#039;thinking&#039;&#039;&#039; while it works on your request, giving you a peek into what it is doing.&lt;br /&gt;
* It &#039;&#039;&#039;saves conversations&#039;&#039;&#039;, keyed to your model. Resume a previous session for that model from a dropdown in the chat window. Conversations are saved on your own computer, not on our server.&lt;br /&gt;
&lt;br /&gt;
===New Assista features===&lt;br /&gt;
* &#039;&#039;&#039;Personalize&#039;&#039;&#039; Assista&#039;s tone, level of detail, and custom instructions.&lt;br /&gt;
* &#039;&#039;&#039;Ingest documents&#039;&#039;&#039; (&amp;lt;code&amp;gt;*.txt, *.pdf, *.md, *.docx, *.xlsx, *.xlsm&amp;lt;/code&amp;gt;) or URLs into the chat using a menu in the Request box, or by dragging and dropping files into the window. Assista can then extract data from a document or image and add tables to your model, translate a spreadsheet into Analytica, or even implement a model described in an article.&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;See&amp;quot; images&#039;&#039;&#039; in your model — pictures in nodes, images in table cells, and screenshots of diagrams or graphs.&lt;br /&gt;
* &#039;&#039;&#039;Create images and node icons&#039;&#039;&#039; in your model.&lt;br /&gt;
* &#039;&#039;&#039;Read from URLs&#039;&#039;&#039; that you point it to or drag into the chat.&lt;br /&gt;
* Converse in most common &#039;&#039;&#039;languages&#039;&#039;&#039;. In Spanish, it gives UI instructions using the Spanish-language menu and dialog names.&lt;br /&gt;
* &#039;&#039;&#039;Explain its reasoning&#039;&#039;&#039; in previous requests and expand on ideas.&lt;br /&gt;
* &#039;&#039;&#039;Personalize&#039;&#039;&#039; its tone, style and level of detail, and give it custom instructions. Click the Assista logo in the top-left corner of the chat window and select &#039;&#039;&#039;Personalization&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;Generate a report&#039;&#039;&#039; or user guide as a downloadable PDF or Word document. Reports can contain tables, graphs, influence diagrams and formatted equations from your model.&lt;br /&gt;
* &#039;&#039;&#039;Tutorial mode&#039;&#039;&#039; takes new users through a series of tutorials on how to use Analytica.&lt;br /&gt;
&lt;br /&gt;
===Assista backend===&lt;br /&gt;
* Its special &#039;&#039;&#039;skills (competencies)&#039;&#039;&#039; include structuring decision models, drawing influence diagrams, designing user interfaces, Analytica syntax, and more.&lt;br /&gt;
* You can create [[Assista_-_Analytica_AI_Assistant/Custom_user_skills_for_Assista|your own custom skills]] to expand its capabilities, or ask it to create new skills for you.&lt;br /&gt;
* A new &#039;&#039;&#039;processing pipeline&#039;&#039;&#039; gives faster responses and lets it work longer on harder tasks.&lt;br /&gt;
&lt;br /&gt;
== More languages: Spanish UI ==&lt;br /&gt;
&lt;br /&gt;
Analytica now comes with a Spanish-language UI: all its menus, dialogs, error messages and built-in function descriptions are in Spanish. The installer runs with a Spanish UI by default when you are in a Spanish-language region.&lt;br /&gt;
&lt;br /&gt;
You can override the default language by launching Analytica as:&lt;br /&gt;
* &amp;lt;code&amp;gt;Analytica.exe /lang:es&amp;lt;/code&amp;gt;&lt;br /&gt;
*: or&lt;br /&gt;
* &amp;lt;code&amp;gt;Analytica.exe /lang:en&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also set the &amp;lt;code&amp;gt;Language&amp;lt;/code&amp;gt; registry setting in the &amp;lt;code&amp;gt;&amp;quot;HKCU/Software/Lumina Decision Systems/Analytica&amp;quot;&amp;lt;/code&amp;gt; hive to REG_SZ &amp;lt;code&amp;gt;&amp;quot;en&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;es&amp;quot;&amp;lt;/code&amp;gt; for your default, if different from your Windows region setting.&lt;br /&gt;
&lt;br /&gt;
Assista supports most languages, and explains features (translating docs) in your language.&lt;br /&gt;
&lt;br /&gt;
== CSV files and Spreadsheets ==&lt;br /&gt;
&lt;br /&gt;
===Import data===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Drag and drop a CSV file&#039;&#039;&#039; onto the diagram. It creates a table along with two indexes, the same as using &amp;lt;code&amp;gt;File / Import...&amp;lt;/code&amp;gt; on the *.csv file.&lt;br /&gt;
* Drag and drop a CSV file, spreadsheet, or even a PDF or Word document containing tables into the &#039;&#039;&#039;Assista window&#039;&#039;&#039;. Assista can then extract the tables and add them to your model.&lt;br /&gt;
* Launch Analytica from the &#039;&#039;&#039;command line&#039;&#039;&#039; with a CSV file as a parameter: &amp;lt;code&amp;gt;Analytica.exe MyData.csv&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Expanded Spreadsheet functions===&lt;br /&gt;
* Create a new blank spreadsheet in memory with &amp;lt;code&amp;gt;[[SpreadsheetOpen]](&amp;quot;new&amp;quot;)&amp;lt;/code&amp;gt;. Works with both the Excel and LibXl backends.&lt;br /&gt;
* Add a new sheet to an Excel workbook: preface a sheet name with &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; in the call to [[SpreadsheetSetCell]] or [[SpreadsheetSetRange]], and it applies the change to that new worksheet. Also works with Excel and LibXl backends.&lt;br /&gt;
* Remove a sheet from a workbook using: &amp;lt;code&amp;gt;[[SpreadsheetSetCell]](wb, &amp;quot;-OldSheet&amp;quot;, col, row, Null)&amp;lt;/code&amp;gt;. The «col» and «row» parameters are required but ignored in this case.&lt;br /&gt;
&lt;br /&gt;
== User Interface ==&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;Node Icon editor&#039;&#039;&#039; (on the Diagram menu) is far more powerful. You can use it to edit arbitrary node images, with color and transparency. If your image editing skills aren&#039;t so great, ask [[Assista]] to add node icons for you.&lt;br /&gt;
[[File:Factory capacity diagram with icons.png|thumb|500px|alt=Factory Capacity influence diagram with custom node icons|Custom node icons make a diagram easier to read at a glance.]]&lt;br /&gt;
&lt;br /&gt;
* Windows now have the &#039;&#039;&#039;Windows 11 style&#039;&#039;&#039; — thin (1 pixel) borders, rounded corners at the top, a white title bar, and plain (text-like) button images in the toolbar.&lt;br /&gt;
* The [[Outline window]] is now docked on the left of the Analytica window, so it won&#039;t overlap other windows.&lt;br /&gt;
* New keyboard shortcuts for &#039;&#039;&#039;Set Node Style...&#039;&#039;&#039; and &#039;&#039;&#039;Set Diagram Style...&#039;&#039;&#039;&lt;br /&gt;
* The new &#039;&#039;&#039;Use as default arrow style&#039;&#039;&#039; option on the right-click menu for an influence diagram arrow lets you make an arrow&#039;s style, such as thickness and color, the default for your model.&lt;br /&gt;
* When your model uses a [[Modules_and_Libraries#Filed_Module|filed module]] or [[Modules_and_Libraries#Filed_Module|filed library]], Analytica detects any changes to its source file and offers to reload the new version.&lt;br /&gt;
&lt;br /&gt;
== Built-in functions ==&lt;br /&gt;
&lt;br /&gt;
* New options for [[GetProcessInfo]]: &amp;lt;code&amp;gt;&amp;quot;Number of monitors&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Current monitor rect&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Current monitor work rect&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Monitor «N» Rect&amp;quot;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;quot;Monitor «N» work rect&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[GetProcessInfo]](&amp;quot;UI Language&amp;quot;)&amp;lt;/code&amp;gt; returns the UI language, either &amp;lt;code&amp;gt;&amp;quot;en&amp;quot;&amp;lt;/code&amp;gt; (for English) or &amp;lt;code&amp;gt;&amp;quot;es&amp;quot;&amp;lt;/code&amp;gt; (for Spanish).&lt;br /&gt;
* [[Evaluate]] has new optional parameters to throw parsing errors, set a time limit, capture console output, and control warnings: «throwParsingErrors», «maxSeconds», «reportOutput» and «ignoreAtFirstWarning». See [[Evaluate#Handling errors|Evaluate]] for details.&lt;br /&gt;
* [[ReadFromURL]] is smarter about returning binary content (like &amp;lt;code&amp;gt;*.zip&amp;lt;/code&amp;gt; files) as a [[In-memory binary data terms|Binary Data Term]].&lt;br /&gt;
* [[MakeJSON]] automatically encodes an image in base64 JSON, and [[ParseJSON]] automatically decodes a base64 representation into an image. A new «maxCells» parameter prevents gigantic arrays from being encoded (resulting in immensely long text).&lt;br /&gt;
* File functions ([[ReadTextFile]], [[WriteTextFile]], [[ReadBinaryFile]], [[WriteBinaryFile]], [[ReadImageFile]] and [[WriteImageFile]]) have a new optional parameter, «extensionFilter», which specifies which file extensions show up in the file selector dialog.&lt;br /&gt;
&lt;br /&gt;
== Namespaces ==&lt;br /&gt;
&lt;br /&gt;
[[Namespaces]] let you keep the objects in a module or library separate from the rest of your model, so two libraries can each have a variable named, say, &amp;lt;code&amp;gt;Revenue&amp;lt;/code&amp;gt; without a conflict. This makes it easier to build and share large models and reusable libraries. Namespaces are still an experimental feature (introduced in [[Analytica 6.5]]); this release adds:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;[[QualifiedName]](obj, nsContext)&amp;lt;/code&amp;gt;: returns the qualified identifier (as text) that uniquely identifies «obj» from the context of «nsContext».&lt;br /&gt;
* &amp;lt;code&amp;gt;[[Namespace]] of X&amp;lt;/code&amp;gt;: a new attribute that returns the namespace of «X».&lt;br /&gt;
* &amp;lt;code&amp;gt;[[Using..Do|Using]] NS Do ...&amp;lt;/code&amp;gt;: brings a namespace into scope for just one expression or block of code — see [[Namespaces#Scoped namespace inclusion: Using|Scoped namespace inclusion]].&lt;br /&gt;
* New system namespaces &amp;lt;code&amp;gt;SysLib_Internal&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;SysLib_Experimental&amp;lt;/code&amp;gt;, intended for Analytica-internal use.&lt;br /&gt;
&lt;br /&gt;
For details, see [[Namespaces]].&lt;br /&gt;
&lt;br /&gt;
== MCP server for LLMs ==&lt;br /&gt;
You can install multiple ADE-based MCP servers that run different ADE releases. For example, you could install two MCP servers into Claude Code to compare results for the same model across releases:&lt;br /&gt;
* &amp;lt;code&amp;gt;ade-server&amp;lt;/code&amp;gt;: runs ADE 7.1&lt;br /&gt;
* &amp;lt;code&amp;gt;ade-server-70&amp;lt;/code&amp;gt;: runs ADE 7.0&lt;br /&gt;
The &amp;lt;code&amp;gt;«ADE install folder»\Examples\Mcp_server\README.txt&amp;lt;/code&amp;gt; file explains how, with enough information for Claude Code to configure this for you.&lt;br /&gt;
&lt;br /&gt;
The MCP server was first added in ADE 7.0.&lt;br /&gt;
&lt;br /&gt;
== Internals ==&lt;br /&gt;
&lt;br /&gt;
This release includes major internal restructuring. It doesn&#039;t change functionality, but it improves speed and memory efficiency now, and will do so even more in future releases.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Faster model loading:&#039;&#039;&#039; When opening a large model, Analytica parses its definitions in parallel on multiple threads. On some computers and models, this dramatically speeds up load time. In the unlikely event this causes a problem with your model, you can turn it off — see [[Multithreaded evaluation#Troubleshooting a suspected multithreading problem|Troubleshooting a suspected multithreading problem]].&lt;br /&gt;
* &#039;&#039;&#039;New array representation:&#039;&#039;&#039; The internal data structure for multi-dimensional arrays has changed. Possible impacts:&lt;br /&gt;
** Evaluation speed is less sensitive to the &amp;quot;canonical order&amp;quot; of indexes.&lt;br /&gt;
** Evaluation speed of various functions and operations may change.&lt;br /&gt;
* [[:Category:Cell format functions|Cell formatting functions]] (like [[CellSpan]], [[CellFill]], etc.) are now [[Struct]]s rather than functions. This doesn&#039;t change how you use them, other than making it easier for code to traverse the resulting data structures.&lt;br /&gt;
* Color attributes now consistently use color integers (rather than the legacy number triples for R,G,B).&lt;br /&gt;
* System variable [[Graph_ColorSequence]] replaces [[Graph_ColorSeq]], which is now deprecated. It contains a list of color integers, one per color, of the form &amp;lt;code&amp;gt;0x00rrggbb&amp;lt;/code&amp;gt; (the old version used a triple of numbers per color).&lt;br /&gt;
&lt;br /&gt;
== Discontinued ==&lt;br /&gt;
&lt;br /&gt;
* Plug-in functions. (An old hook that let you extend Analytica with compiled functions and UI elements written in C++. We are almost certain no one is using these hooks any more.)&lt;br /&gt;
* The system variable [[Graph_ColorSeq]] is now deprecated (but still works for both reading and setting, for backward compatibility). It has been replaced by [[Graph_ColorSequence]].&lt;br /&gt;
* The built-in (but undocumented, unsupported) &amp;lt;code&amp;gt;ifpos&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;if0&amp;lt;/code&amp;gt; functions were removed.&lt;br /&gt;
* The legacy (deprecated) syntax &amp;lt;code&amp;gt;Using temp:=... Do&amp;lt;/code&amp;gt; for declaring locals is no longer supported. Legacy models have such definitions automatically rewritten to use [[Local..Do]] when you load them. [[Using..Do]] now has a different meaning: a temporary namespace import (see [[#Namespaces|Namespaces]]).&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=65913</id>
		<title>What&#039;s new in Analytica 7.2?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=65913"/>
		<updated>2026-11-16T14:35:25Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Official release&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--Analytica 7.2 is currently under development, and will be a future release of Analytica. The current official release is [[Analytica 7.1]]. This page is under construction, and will list enhancements that are new to Analytica or ADE 7.2.--&amp;gt;&lt;br /&gt;
&amp;lt;!--Analytica 7.2 is the next release of Analytica and is now in [[Beta Tester Page|beta testing]]. The current official release is [[Analytica 7.1]]. To try Analytica 7.2 beta, visit the [[Beta Tester Page]].&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
Analytica 7.2 is the latest official release. Analytica 7.2 makes it safe to connect your models to databases and web services, works directly with live Google Sheets, understands the date formats web services use, and makes Analytica easier to drive from the keyboard, the command line, and AI assistants. Here&#039;s what&#039;s new since [[Analytica 7.1]].&lt;br /&gt;
&lt;br /&gt;
== Highlights of Analytica 7.2 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Google Sheets and other data sources|Live Google Sheets]]:&#039;&#039;&#039; The [[Functions To Read Excel Worksheets|spreadsheet functions]] now work directly with live Google Sheets, as well as Excel workbooks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#User interface|Outline and easier navigation]]:&#039;&#039;&#039; A &#039;&#039;&#039;friendlier [[Outline window]]&#039;&#039;&#039; with hover icons and full keyboard control, a new &#039;&#039;&#039;Object / New&#039;&#039;&#039; menu for adding any kind of object, and new popups on Module nodes that show which variables connect one module to another.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Dates and time zones|Web-friendly dates and time zones]]:&#039;&#039;&#039; Analytica now reads the ISO 8601 date-times that most web services return, such as &amp;lt;code&amp;gt;2025-08-25T00:07:05Z&amp;lt;/code&amp;gt;, converts them to your model&#039;s time zone, and can write them back out.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#AI integration|AI integration]]:&#039;&#039;&#039; Cloud-based AI assistants, such as Claude.ai and Claude Cowork, can now use Analytica&#039;s [[MCP server in Analytica|MCP server]] on your desktop.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Secrets|Secrets]]:&#039;&#039;&#039; Your model can now use database passwords and API keys without ever exposing them. A new [[Secret]] object holds the credential, and Analytica hands it only to the database or web service it&#039;s meant for — never to a result, a saved file, or someone else&#039;s server.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Built-in functions|Encryption, custom sorting, and more]]:&#039;&#039;&#039; New built-in functions for strong [[Encrypting and decrypting|encryption]], custom sort orders, testing whether a file exists, and more.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;No more object limit:&#039;&#039;&#039; The old limit of 65,500 objects in a model is gone.&lt;br /&gt;
&lt;br /&gt;
== Google Sheets and other data sources ==&lt;br /&gt;
* The [[Functions To Read Excel Worksheets|spreadsheet functions]] now work directly with &#039;&#039;&#039;live Google Sheets&#039;&#039;&#039;. &amp;lt;code&amp;gt;[[SpreadsheetInfo]](wb, &#039;Backend&#039;)&amp;lt;/code&amp;gt; tells you whether a workbook uses &amp;lt;code&amp;gt;&#039;LibXl&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;Excel&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;GoogleSheets&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[FileExists]](filepath&#039;&#039;, files, folders&#039;&#039;)&amp;lt;/code&amp;gt; tests whether a file or folder exists. (Requires [[Analytica Developer]] or better.)&lt;br /&gt;
* &#039;&#039;(Advanced)&#039;&#039; [[Custom file system providers]] let a path like &amp;lt;code&amp;gt;&amp;quot;repo://Sales/Q3.csv&amp;quot;&amp;lt;/code&amp;gt; work anywhere Analytica accepts a file name, even when the &amp;quot;file&amp;quot; really lives in a git repository, cloud storage, or a document management system. You can also write your own provider.&lt;br /&gt;
&lt;br /&gt;
== User interface ==&lt;br /&gt;
[[File:OutlineWindowModulesOnly.png|thumb|300px|The [[Outline window]] shows your model&#039;s modules and objects as an expandable outline.]]&lt;br /&gt;
* &#039;&#039;&#039;A friendlier [[Outline window]]:&#039;&#039;&#039;&lt;br /&gt;
** Hover icons on each item.&lt;br /&gt;
** Navigate with the keyboard: arrow keys move and expand/collapse, Home/End jump to the top or bottom, and typing searches as you type.&lt;br /&gt;
** Alt+Click an item to insert its identifier into the expression you&#039;re editing.&lt;br /&gt;
** Each module now has its own button to show or hide its non-module contents (replacing the &#039;&#039;&#039;Modules only&#039;&#039;&#039; checkbox).&lt;br /&gt;
* &#039;&#039;&#039;Object / New menu:&#039;&#039;&#039; The [[Object menu]] has a new &#039;&#039;&#039;New&#039;&#039;&#039; submenu for adding an object of any class — handy for classes that aren&#039;t on the toolbar (such as Frame node, Struct, Callable, or Secret), and for adding nodes without a mouse. &#039;&#039;&#039;New / Picture&#039;&#039;&#039; prompts for an image file.&lt;br /&gt;
* &#039;&#039;&#039;See what connects your modules:&#039;&#039;&#039; Module nodes now have input and output popups, like variables. Click just left of a Module node to see what flows into it, or just right to see what flows out. Because modules can have many connections, the popups show them as an expandable outline. [[File:Pop-up inputs to module with Outline.png|thumb|400px|alt=Input popup on the Cost to Buy module, showing its inputs as an expandable outline|Click just left of a module, here &#039;&#039;Cost to Buy&#039;&#039;, to see its inputs. Expand one, such as &#039;&#039;Discount rate&#039;&#039;, to see which variables inside the module use it.]]&lt;br /&gt;
* &#039;&#039;&#039;New [[Publish To Cloud dialog]]&#039;&#039;&#039; for publishing to ACP3 (today&#039;s [https://acp.analytica.com ACP]) and the upcoming ACP4.&lt;br /&gt;
* &#039;&#039;&#039;List editor:&#039;&#039;&#039; A user input node with a &#039;&#039;&#039;[List]&#039;&#039;&#039; control now opens a simple list-editor dialog, like the one in ACP, instead of the Object window.&lt;br /&gt;
* &#039;&#039;&#039;Drag and drop text&#039;&#039;&#039; within and between text attributes, without disturbing the clipboard.&lt;br /&gt;
* New settings in the [[Preferences dialog]]: how identifiers are generated from titles (Assista uses this too), whether display-only arrows are dashed, and the model&#039;s time zone.&lt;br /&gt;
* Added the SysVar [[Sys_NonClientAreaStyle]] that enables you to customize the appearance of the client MDI windows, such as by giving them wider, easier to grab, borders than in the Windows 11-style default.&lt;br /&gt;
&lt;br /&gt;
== Dates and time zones ==&lt;br /&gt;
* &#039;&#039;&#039;Web-style dates:&#039;&#039;&#039; ISO 8601 / RFC 3339 date-times with a UTC offset, such as &amp;lt;code&amp;gt;2025-08-25T00:07:05.000+0000&amp;lt;/code&amp;gt; (the form most web APIs return), are now understood by [[ParseDate]], [[ParseCSV]], table cells and definitions. You can even write them directly in expressions, e.g., &amp;lt;code&amp;gt;Sequence(2025-08-25T00:00:00, 2025-08-27T00:00:00, dateUnit: &#039;D&#039;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;A time zone for your model:&#039;&#039;&#039; A new &#039;&#039;&#039;Time zone&#039;&#039;&#039; setting in the [[Preferences dialog]] says which time zone your model&#039;s dates are in. Dates with an explicit offset are converted into it, and [[Today]]() reports the time in it. [[ParseDate]], [[ParseCSV]], [[Today]] and [[NumberToText]] also take a new «timeZone» parameter.&lt;br /&gt;
* &#039;&#039;&#039;Write dates for web services:&#039;&#039;&#039; A new &amp;lt;code&amp;gt;&#039;ISO8601&#039;&amp;lt;/code&amp;gt; date format, e.g., &amp;lt;code&amp;gt;NumberToText(x, dateFormat: &#039;ISO8601&#039;, timeZone: &#039;UTC&#039;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
See [[Date and Time Values]] and [[Date formats]] for details.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background:#fff8e1&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;Behavior change:&#039;&#039;&#039; A trailing &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; on a date-time, as in &amp;lt;code&amp;gt;ParseDate(&#039;2025-08-25T00:07:05Z&#039;)&amp;lt;/code&amp;gt;, was ignored in 7.0 and 7.1. It now means UTC, so such values shift by your time zone&#039;s offset from UTC. A literal &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; in a custom date template must now be quoted (&amp;lt;code&amp;gt;&#039;Z&#039;&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AI integration ==&lt;br /&gt;
* Cloud-based AI clients, such as Claude.ai and Claude Cowork, can now use the [[MCP server in Analytica|MCP server in desktop Analytica]], with a tunnel such as &amp;lt;code&amp;gt;cloudflared&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ngrok&amp;lt;/code&amp;gt;.&lt;br /&gt;
* New tools behind the scenes help Assista and MCP clients work with your models: [[ArrowDependencies]] reports exactly which variables create the dependencies between modules, and [[Evaluate]]&#039;s new «sideEffects» parameter can prevent an evaluation from changing the model.&lt;br /&gt;
&lt;br /&gt;
== Secrets ==&lt;br /&gt;
[[File:How a Secret keeps your credential safe.png|thumb|500px|alt=Diagram: the model sees only a placeholder; a trusted built-in function swaps in the real password only on its way to the approved database|The credential reaches only the approved destination. Everywhere else sees just the placeholder.]]&lt;br /&gt;
A [[Secret]] is a new kind of object that safely holds a credential your model needs, such as a database password, API key, or bearer token.&lt;br /&gt;
&lt;br /&gt;
In your model, a Secret&#039;s identifier evaluates to a &#039;&#039;placeholder&#039;&#039; text, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{secret:AcmeKey}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which you use in a connection string or URL like any other text:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;DbQuery(f&amp;quot;DSN=AcmeWarehouse;UID=svc_reports;PWD={AcmeKey}&amp;quot;, sql)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica substitutes the real value only at the last moment, inside trusted built-in functions such as [[DbQuery]] and [[ReadFromUrl|ReadFromURL]], and only when the destination matches the Secret&#039;s policy. Your definitions stay fully readable, yet the credential never appears in any result, attribute, error message, or saved file, and model code can&#039;t send it anywhere else.&lt;br /&gt;
&lt;br /&gt;
Create one with &#039;&#039;&#039;[[Object menu]] / New / Secret&#039;&#039;&#039; (requires [[Analytica Developer]] edition; models &#039;&#039;containing&#039;&#039; secrets load and run in every edition). See [[Secret]] for details, including what each storage option does and doesn&#039;t protect against.&lt;br /&gt;
&lt;br /&gt;
== Built-in functions ==&lt;br /&gt;
* &#039;&#039;&#039;Encryption:&#039;&#039;&#039; New functions for [[Encrypting and decrypting|encryption and decryption]] using strong, standard authenticated encryption. (Requires [[Analytica Developer]] or better.)&lt;br /&gt;
* &#039;&#039;&#039;Custom sort orders:&#039;&#039;&#039; [[SortIndex]], [[Sort]] and [[Rank]] accept a «lessThan» function. See [[Using an ordering function when sorting]].&lt;br /&gt;
* [[Flatten]] has new «map» and «includeNull» parameters, making it easy to combine lists held in [[references]] or [[Struct]] members.&lt;br /&gt;
* [[UncertainLMH]] now allows «xLow» = «lb» or «xHigh» = «ub», putting a spike of probability at the bound.&lt;br /&gt;
* [[Area]] and [[Integrate]] in a [[DefineOptimization]] are now recognized as linear or quadratic when classifying the problem as LP, QP or NLP.&lt;br /&gt;
* New options for [[GetProcessInfo]] detect a non-Windows host (such as Linux) and installed fonts.&lt;br /&gt;
* [[HandleFromIdentifier]] has an «asIndex» parameter, like [[Handle]].&lt;br /&gt;
* &#039;&#039;(Experimental)&#039;&#039; A new [[Timer]] struct schedules an evaluation.&lt;br /&gt;
&lt;br /&gt;
== Command line and automation ==&lt;br /&gt;
Analytica 7.2 adds several [[Analytica Command Line|command line options]] for scripted workflows, testing and AI tools, including:&lt;br /&gt;
* &amp;lt;code&amp;gt;/evalThenExit:«expression»&amp;lt;/code&amp;gt; — evaluate, then exit without prompting to save.&lt;br /&gt;
* &amp;lt;code&amp;gt;/lib:«YourLib.ana»&amp;lt;/code&amp;gt; — load a library into [[SysLib_Customizations]] that stays available across models, e.g., for [[Assista - Analytica AI Assistant/Custom user skills for Assista|custom Assista skills]] or [[MCP server in Analytica|MCP servers]].&lt;br /&gt;
* &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt; — run without modal dialogs that wait for a user (see [[Analytica_Command_Line/Automation|Automation]]).&lt;br /&gt;
* &amp;lt;code&amp;gt;/WindowXY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/WindowSize&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/stores&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/Autosave&amp;lt;/code&amp;gt;, and more.&lt;br /&gt;
See [[Analytica Command Line#Options|Analytica Command Line]] for the full list.&lt;br /&gt;
&lt;br /&gt;
== Evaluation engine and other changes ==&lt;br /&gt;
* &#039;&#039;&#039;No limit on objects:&#039;&#039;&#039; The previous maximum of 65,500 objects has been removed.&lt;br /&gt;
* &#039;&#039;&#039;Null for the implicit dimension:&#039;&#039;&#039; You can pass [[Null]] to a repeated index parameter of any built-in function to mean the implicit dimension, so &amp;lt;code&amp;gt;...[[IndexesOf]](x)&amp;lt;/code&amp;gt; works even when «x» has one. User-defined functions can do the same with the new &amp;lt;code&amp;gt;nullIndexOk&amp;lt;/code&amp;gt; [[Function parameter qualifiers|parameter qualifier]].&lt;br /&gt;
* &#039;&#039;&#039;Dynamic partial results:&#039;&#039;&#039; During a [[Dynamic]] calculation, partial results are now kept in new &amp;lt;code&amp;gt;dynValue&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dynProbValue&amp;lt;/code&amp;gt; attributes; &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;probValue&amp;lt;/code&amp;gt; hold only fully computed results.&lt;br /&gt;
* &amp;lt;code&amp;gt;Date&amp;lt;/code&amp;gt; is no longer a reserved word, so you can use it as an identifier in your models. (The &amp;quot;Created date&amp;quot; attribute of models, modules, and libraries is still available as &amp;lt;code&amp;gt;SysLib_Internal::Date&amp;lt;/code&amp;gt;, and the model file format is unchanged.)&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=64737</id>
		<title>What&#039;s new in Analytica 7.2?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=64737"/>
		<updated>2026-10-28T19:32:37Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: /* User interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--Analytica 7.2 is currently under development, and will be a future release of Analytica. The current official release is [[Analytica 7.1]]. This page is under construction, and will list enhancements that are new to Analytica or ADE 7.2.--&amp;gt;&lt;br /&gt;
Analytica 7.2 is the next release of Analytica and is now in [[Beta Tester Page|beta testing]]. The current official release is [[Analytica 7.1]]. To try Analytica 7.2 beta, visit the [[Beta Tester Page]].&lt;br /&gt;
&lt;br /&gt;
Analytica 7.2 makes it safe to connect your models to databases and web services, works directly with live Google Sheets, understands the date formats web services use, and makes Analytica easier to drive from the keyboard, the command line, and AI assistants. Here&#039;s what&#039;s new since [[Analytica 7.1]].&lt;br /&gt;
&lt;br /&gt;
== Highlights of Analytica 7.2 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Google Sheets and other data sources|Live Google Sheets]]:&#039;&#039;&#039; The [[Functions To Read Excel Worksheets|spreadsheet functions]] now work directly with live Google Sheets, as well as Excel workbooks.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#User interface|Outline and easier navigation]]:&#039;&#039;&#039; A &#039;&#039;&#039;friendlier [[Outline window]]&#039;&#039;&#039; with hover icons and full keyboard control, a new &#039;&#039;&#039;Object / New&#039;&#039;&#039; menu for adding any kind of object, and new popups on Module nodes that show which variables connect one module to another.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Dates and time zones|Web-friendly dates and time zones]]:&#039;&#039;&#039; Analytica now reads the ISO 8601 date-times that most web services return, such as &amp;lt;code&amp;gt;2025-08-25T00:07:05Z&amp;lt;/code&amp;gt;, converts them to your model&#039;s time zone, and can write them back out.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#AI integration|AI integration]]:&#039;&#039;&#039; Cloud-based AI assistants, such as Claude.ai and Claude Cowork, can now use Analytica&#039;s [[MCP server in Analytica|MCP server]] on your desktop.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Secrets|Secrets]]:&#039;&#039;&#039; Your model can now use database passwords and API keys without ever exposing them. A new [[Secret]] object holds the credential, and Analytica hands it only to the database or web service it&#039;s meant for — never to a result, a saved file, or someone else&#039;s server.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[#Built-in functions|Encryption, custom sorting, and more]]:&#039;&#039;&#039; New built-in functions for strong [[Encrypting and decrypting|encryption]], custom sort orders, testing whether a file exists, and more.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;No more object limit:&#039;&#039;&#039; The old limit of 65,500 objects in a model is gone.&lt;br /&gt;
&lt;br /&gt;
== Google Sheets and other data sources ==&lt;br /&gt;
* The [[Functions To Read Excel Worksheets|spreadsheet functions]] now work directly with &#039;&#039;&#039;live Google Sheets&#039;&#039;&#039;. &amp;lt;code&amp;gt;[[SpreadsheetInfo]](wb, &#039;Backend&#039;)&amp;lt;/code&amp;gt; tells you whether a workbook uses &amp;lt;code&amp;gt;&#039;LibXl&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;Excel&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;GoogleSheets&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;[[FileExists]](filepath&#039;&#039;, files, folders&#039;&#039;)&amp;lt;/code&amp;gt; tests whether a file or folder exists. (Requires [[Analytica Developer]] or better.)&lt;br /&gt;
* &#039;&#039;(Advanced)&#039;&#039; [[Custom file system providers]] let a path like &amp;lt;code&amp;gt;&amp;quot;repo://Sales/Q3.csv&amp;quot;&amp;lt;/code&amp;gt; work anywhere Analytica accepts a file name, even when the &amp;quot;file&amp;quot; really lives in a git repository, cloud storage, or a document management system. You can also write your own provider.&lt;br /&gt;
&lt;br /&gt;
== User interface ==&lt;br /&gt;
[[File:OutlineWindowModulesOnly.png|thumb|300px|The [[Outline window]] shows your model&#039;s modules and objects as an expandable outline.]]&lt;br /&gt;
* &#039;&#039;&#039;A friendlier [[Outline window]]:&#039;&#039;&#039;&lt;br /&gt;
** Hover icons on each item.&lt;br /&gt;
** Navigate with the keyboard: arrow keys move and expand/collapse, Home/End jump to the top or bottom, and typing searches as you type.&lt;br /&gt;
** Alt+Click an item to insert its identifier into the expression you&#039;re editing.&lt;br /&gt;
** Each module now has its own button to show or hide its non-module contents (replacing the &#039;&#039;&#039;Modules only&#039;&#039;&#039; checkbox).&lt;br /&gt;
* &#039;&#039;&#039;Object / New menu:&#039;&#039;&#039; The [[Object menu]] has a new &#039;&#039;&#039;New&#039;&#039;&#039; submenu for adding an object of any class — handy for classes that aren&#039;t on the toolbar (such as Frame node, Struct, Callable, or Secret), and for adding nodes without a mouse. &#039;&#039;&#039;New / Picture&#039;&#039;&#039; prompts for an image file.&lt;br /&gt;
* &#039;&#039;&#039;See what connects your modules:&#039;&#039;&#039; Module nodes now have input and output popups, like variables. Click just left of a Module node to see what flows into it, or just right to see what flows out. Because modules can have many connections, the popups show them as an expandable outline. [[File:Pop-up inputs to module with Outline.png|thumb|400px|alt=Input popup on the Cost to Buy module, showing its inputs as an expandable outline|Click just left of a module, here &#039;&#039;Cost to Buy&#039;&#039;, to see its inputs. Expand one, such as &#039;&#039;Discount rate&#039;&#039;, to see which variables inside the module use it.]]&lt;br /&gt;
* &#039;&#039;&#039;New [[Publish To Cloud dialog]]&#039;&#039;&#039; for publishing to ACP3 (today&#039;s [https://acp.analytica.com ACP]) and the upcoming ACP4.&lt;br /&gt;
* &#039;&#039;&#039;List editor:&#039;&#039;&#039; A user input node with a &#039;&#039;&#039;[List]&#039;&#039;&#039; control now opens a simple list-editor dialog, like the one in ACP, instead of the Object window.&lt;br /&gt;
* &#039;&#039;&#039;Drag and drop text&#039;&#039;&#039; within and between text attributes, without disturbing the clipboard.&lt;br /&gt;
* New settings in the [[Preferences dialog]]: how identifiers are generated from titles (Assista uses this too), whether display-only arrows are dashed, and the model&#039;s time zone.&lt;br /&gt;
* Added the SysVar [[Sys_NonClientAreaStyle]] that enables you to customize the appearance of the client MDI windows, such as by giving them wider, easier to grab, borders than in the Windows 11-style default.&lt;br /&gt;
&lt;br /&gt;
== Dates and time zones ==&lt;br /&gt;
* &#039;&#039;&#039;Web-style dates:&#039;&#039;&#039; ISO 8601 / RFC 3339 date-times with a UTC offset, such as &amp;lt;code&amp;gt;2025-08-25T00:07:05.000+0000&amp;lt;/code&amp;gt; (the form most web APIs return), are now understood by [[ParseDate]], [[ParseCSV]], table cells and definitions. You can even write them directly in expressions, e.g., &amp;lt;code&amp;gt;Sequence(2025-08-25T00:00:00, 2025-08-27T00:00:00, dateUnit: &#039;D&#039;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;A time zone for your model:&#039;&#039;&#039; A new &#039;&#039;&#039;Time zone&#039;&#039;&#039; setting in the [[Preferences dialog]] says which time zone your model&#039;s dates are in. Dates with an explicit offset are converted into it, and [[Today]]() reports the time in it. [[ParseDate]], [[ParseCSV]], [[Today]] and [[NumberToText]] also take a new «timeZone» parameter.&lt;br /&gt;
* &#039;&#039;&#039;Write dates for web services:&#039;&#039;&#039; A new &amp;lt;code&amp;gt;&#039;ISO8601&#039;&amp;lt;/code&amp;gt; date format, e.g., &amp;lt;code&amp;gt;NumberToText(x, dateFormat: &#039;ISO8601&#039;, timeZone: &#039;UTC&#039;)&amp;lt;/code&amp;gt;.&lt;br /&gt;
See [[Date and Time Values]] and [[Date formats]] for details.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background:#fff8e1&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;Behavior change:&#039;&#039;&#039; A trailing &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; on a date-time, as in &amp;lt;code&amp;gt;ParseDate(&#039;2025-08-25T00:07:05Z&#039;)&amp;lt;/code&amp;gt;, was ignored in 7.0 and 7.1. It now means UTC, so such values shift by your time zone&#039;s offset from UTC. A literal &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; in a custom date template must now be quoted (&amp;lt;code&amp;gt;&#039;Z&#039;&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== AI integration ==&lt;br /&gt;
* Cloud-based AI clients, such as Claude.ai and Claude Cowork, can now use the [[MCP server in Analytica|MCP server in desktop Analytica]], with a tunnel such as &amp;lt;code&amp;gt;cloudflared&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ngrok&amp;lt;/code&amp;gt;.&lt;br /&gt;
* New tools behind the scenes help Assista and MCP clients work with your models: [[ArrowDependencies]] reports exactly which variables create the dependencies between modules, and [[Evaluate]]&#039;s new «sideEffects» parameter can prevent an evaluation from changing the model.&lt;br /&gt;
&lt;br /&gt;
== Secrets ==&lt;br /&gt;
[[File:How a Secret keeps your credential safe.png|thumb|500px|alt=Diagram: the model sees only a placeholder; a trusted built-in function swaps in the real password only on its way to the approved database|The credential reaches only the approved destination. Everywhere else sees just the placeholder.]]&lt;br /&gt;
A [[Secret]] is a new kind of object that safely holds a credential your model needs, such as a database password, API key, or bearer token.&lt;br /&gt;
&lt;br /&gt;
In your model, a Secret&#039;s identifier evaluates to a &#039;&#039;placeholder&#039;&#039; text, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{secret:AcmeKey}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which you use in a connection string or URL like any other text:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;DbQuery(f&amp;quot;DSN=AcmeWarehouse;UID=svc_reports;PWD={AcmeKey}&amp;quot;, sql)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Analytica substitutes the real value only at the last moment, inside trusted built-in functions such as [[DbQuery]] and [[ReadFromUrl|ReadFromURL]], and only when the destination matches the Secret&#039;s policy. Your definitions stay fully readable, yet the credential never appears in any result, attribute, error message, or saved file, and model code can&#039;t send it anywhere else.&lt;br /&gt;
&lt;br /&gt;
Create one with &#039;&#039;&#039;[[Object menu]] / New / Secret&#039;&#039;&#039; (requires [[Analytica Developer]] edition; models &#039;&#039;containing&#039;&#039; secrets load and run in every edition). See [[Secret]] for details, including what each storage option does and doesn&#039;t protect against.&lt;br /&gt;
&lt;br /&gt;
== Built-in functions ==&lt;br /&gt;
* &#039;&#039;&#039;Encryption:&#039;&#039;&#039; New functions for [[Encrypting and decrypting|encryption and decryption]] using strong, standard authenticated encryption. (Requires [[Analytica Developer]] or better.)&lt;br /&gt;
* &#039;&#039;&#039;Custom sort orders:&#039;&#039;&#039; [[SortIndex]], [[Sort]] and [[Rank]] accept a «lessThan» function. See [[Using an ordering function when sorting]].&lt;br /&gt;
* [[Flatten]] has new «map» and «includeNull» parameters, making it easy to combine lists held in [[references]] or [[Struct]] members.&lt;br /&gt;
* [[UncertainLMH]] now allows «xLow» = «lb» or «xHigh» = «ub», putting a spike of probability at the bound.&lt;br /&gt;
* [[Area]] and [[Integrate]] in a [[DefineOptimization]] are now recognized as linear or quadratic when classifying the problem as LP, QP or NLP.&lt;br /&gt;
* New options for [[GetProcessInfo]] detect a non-Windows host (such as Linux) and installed fonts.&lt;br /&gt;
* [[HandleFromIdentifier]] has an «asIndex» parameter, like [[Handle]].&lt;br /&gt;
* &#039;&#039;(Experimental)&#039;&#039; A new [[Timer]] struct schedules an evaluation.&lt;br /&gt;
&lt;br /&gt;
== Command line and automation ==&lt;br /&gt;
Analytica 7.2 adds several [[Analytica Command Line|command line options]] for scripted workflows, testing and AI tools, including:&lt;br /&gt;
* &amp;lt;code&amp;gt;/evalThenExit:«expression»&amp;lt;/code&amp;gt; — evaluate, then exit without prompting to save.&lt;br /&gt;
* &amp;lt;code&amp;gt;/lib:«YourLib.ana»&amp;lt;/code&amp;gt; — load a library into [[SysLib_Customizations]] that stays available across models, e.g., for [[Assista - Analytica AI Assistant/Custom user skills for Assista|custom Assista skills]] or [[MCP server in Analytica|MCP servers]].&lt;br /&gt;
* &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt; — run without modal dialogs that wait for a user (see [[Analytica_Command_Line/Automation|Automation]]).&lt;br /&gt;
* &amp;lt;code&amp;gt;/WindowXY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/WindowSize&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/stores&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;/Autosave&amp;lt;/code&amp;gt;, and more.&lt;br /&gt;
See [[Analytica Command Line#Options|Analytica Command Line]] for the full list.&lt;br /&gt;
&lt;br /&gt;
== Evaluation engine and other changes ==&lt;br /&gt;
* &#039;&#039;&#039;No limit on objects:&#039;&#039;&#039; The previous maximum of 65,500 objects has been removed.&lt;br /&gt;
* &#039;&#039;&#039;Null for the implicit dimension:&#039;&#039;&#039; You can pass [[Null]] to a repeated index parameter of any built-in function to mean the implicit dimension, so &amp;lt;code&amp;gt;...[[IndexesOf]](x)&amp;lt;/code&amp;gt; works even when «x» has one. User-defined functions can do the same with the new &amp;lt;code&amp;gt;nullIndexOk&amp;lt;/code&amp;gt; [[Function parameter qualifiers|parameter qualifier]].&lt;br /&gt;
* &#039;&#039;&#039;Dynamic partial results:&#039;&#039;&#039; During a [[Dynamic]] calculation, partial results are now kept in new &amp;lt;code&amp;gt;dynValue&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dynProbValue&amp;lt;/code&amp;gt; attributes; &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;probValue&amp;lt;/code&amp;gt; hold only fully computed results.&lt;br /&gt;
* &amp;lt;code&amp;gt;Date&amp;lt;/code&amp;gt; is no longer a reserved word, so you can use it as an identifier in your models. (The &amp;quot;Created date&amp;quot; attribute of models, modules, and libraries is still available as &amp;lt;code&amp;gt;SysLib_Internal::Date&amp;lt;/code&amp;gt;, and the model file format is unchanged.)&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_Command_Line&amp;diff=64734</id>
		<title>Analytica Command Line</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_Command_Line&amp;diff=64734"/>
		<updated>2026-10-27T22:19:32Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: /NoActivate command-line option (new in 7.3)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; [[category:File Commands]]&lt;br /&gt;
[[Category:Analytica User Guide]]&lt;br /&gt;
&lt;br /&gt;
{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
The desktop Analytica.exe process is launched with a command line having the format:&lt;br /&gt;
&lt;br /&gt;
 Analytica.exe [options] [filename]&lt;br /&gt;
&lt;br /&gt;
The brackets mean that these are optional. When &#039;&#039;filename&#039;&#039; has one or more spaces, you need to put double quotes around the filename. Or, you can put double quotes around the &#039;&#039;filename&#039;&#039; even if it doesn&#039;t have spaces.  The &#039;&#039;filename&#039;&#039; will usually have the extension *.ana.  When no filename is specified, Analytica launches to the intro screen.  When a filename is specified, it loads that model file.&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
&lt;br /&gt;
Each option can be prefixed either with a forward slash, &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;, or with a minus, &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;. Option values appear after a colon. There can be no spaces within the option or its value. When an option value contains a space, the option value must be quoted using double quotes. &lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=As of [[Analytica 7.2]], an option may also be prefixed with a double minus, &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt;, and an option value may be introduced by an equal sign, &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;, in place of the colon. So &amp;lt;code&amp;gt;/nosplash&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-nosplash&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--nosplash&amp;lt;/code&amp;gt; are all the same option, and &amp;lt;code&amp;gt;/mcp:8080&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--mcp=8080&amp;lt;/code&amp;gt; are the same option with the same value. This makes the spellings that are conventional for Chromium and for command lines on other operating systems work as expected.}}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/rlmDiag:&#039;&#039;filename&#039;&#039;&amp;lt;/code&amp;gt;: Writes diagnostic information about licenses to &#039;&#039;filename&#039;&#039;. This is very useful if you are encountering problems with a license that you believe has been activated, but is not working.  After launching Analytica with this option, exit Analytica and either review the log file in a text editor, or email the diagnostic file to support@lumina.com for assistance. The diagnostic file logs the information about licenses that it finds on your computer, and hence is very useful for debugging license problems. &lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /rlmDiag:&amp;quot;c:\Temp\rlmDiag.log&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/roam:&#039;&#039;days&#039;&#039;&amp;lt;/code&amp;gt;: Specifies the number of days to roam a floating license.  Or, if &#039;&#039;days&#039;&#039; is -1, it releases a roamed license. See [[License Roaming]].&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /roam:7&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/lic:&#039;&#039;licenseName&#039;&#039;&amp;lt;/code&amp;gt;: Uses the specified license name without changing which license is selected by default. The license must already be activated (i.e., the license must be in your &amp;lt;code&amp;gt;C:\ProgramData\Lumina\Licenses&amp;lt;/code&amp;gt; folder).&lt;br /&gt;
*:Example: &amp;lt;code&amp;gt;Analytica.exe /lic:analytica_optimizer_761_2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/rlm:&#039;&#039;server&#039;&#039;&amp;lt;/code&amp;gt;: Specifies the server name (or port@serverName) that is running a Reprise License Manager with the desired centrally managed (e.g., floating) license.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/eval:&#039;&#039;expression&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 6.0]]). Specifies an Analytica expression that is evaluated immediately after the model file that is specified on the command line finishes loading. The evaluating occurs after any proactively evaluated variables or buttons in the model. It does not dirty the model. The expression can include global variable assignments, and button identifiers. You will almost certainly want to include double quotes around the expression, and you need to escape any interior quotes by proceeding the quote with a backslash. {{Release?|1=7.1|2=As of [[Analytica 7.1]], the expression is evaluated even when no &#039;&#039;filename&#039;&#039; appears on the command line; it then runs once the model that Analytica starts up with -- your startup model, or a new untitled model -- has finished loading.|3=The parameter is ignored if &#039;&#039;filename&#039;&#039; is not specified on the command line.}}  See [[Running a model in a command line workflow]].&lt;br /&gt;
&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /eval:&amp;quot;Claimant=\&amp;quot;JDoe\&amp;quot;;Run_Batch;Exit&amp;quot; &amp;quot;Claim analysis.ana&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*: In this example, &amp;lt;code&amp;gt;Claimant&amp;lt;/code&amp;gt; is the identifier of an input variable in the model and &amp;lt;code&amp;gt;Run_batch&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Exit&amp;lt;/code&amp;gt; are names of a buttons in the model.&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/evalThenExit:&#039;&#039;expression&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) The same as &amp;lt;code&amp;gt;/eval:&amp;lt;/code&amp;gt;, except that Analytica exits as soon as &#039;&#039;expression&#039;&#039; has finished, without asking whether to save changes. This is almost always what you want in a [[Running a model in a command line workflow|command line workflow]].&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /evalThenExit:&amp;quot;Claimant=\&amp;quot;JDoe\&amp;quot;;Run_Batch&amp;quot; &amp;quot;Claim analysis.ana&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
*: Before 7.2, you had to write the exit into the expression yourself, as &amp;lt;code&amp;gt;/eval:&amp;quot;&#039;&#039;expression&#039;&#039;;EvaluateScript(&#039;[[User Interface Typescript Commands#Bye|Bye]] -&#039;)&amp;quot;&amp;lt;/code&amp;gt;. That was awkward and easy to leave out -- and when it was left out, the batch run did its work and then sat at an idle Analytica window forever, waiting for a person who was never coming.&lt;br /&gt;
*: If &#039;&#039;expression&#039;&#039; exits on its own -- because it runs &amp;lt;code&amp;gt;Bye&amp;lt;/code&amp;gt;, or presses a button that does -- that simply happens first, and this option then has nothing left to do.&lt;br /&gt;
*: If &#039;&#039;expression&#039;&#039; fails, the error dialog still appears and waits to be dismissed before Analytica exits. Add &amp;lt;code&amp;gt;[[Analytica Command Line/Automation|/Automation]]&amp;lt;/code&amp;gt; when the run must not stop for a dialog under any circumstances.&lt;br /&gt;
*: &amp;lt;code&amp;gt;/eval:&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/evalThenExit:&amp;lt;/code&amp;gt; may both appear on the same command line, in which case the &amp;lt;code&amp;gt;/eval:&amp;lt;/code&amp;gt; expression is evaluated first.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/comment:&#039;&#039;text&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 6.0]]) The &#039;&#039;text&#039;&#039; is a comment that is ignored by Analytica. In one example usage, ACP3 adds a comment to each spawned processes to differentiate them in task manager.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/NoSplash&amp;lt;/code&amp;gt;: (new to [[Analytica 6.0]]) Don&#039;t show the splash screen at startup (which normally displays for 3 seconds). &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/mcp:«port»&amp;lt;/code&amp;gt;: (new to [[Analytica 7.0]]) Enable Analytica as [[MCP server in Analytica|an MCP server]] (a protocol that allows A.I. language models to call functions in your model). [[UDF]]s that contain &amp;lt;code&amp;gt;@mcpTool&amp;lt;/code&amp;gt; in their description are exposed as functions that the external A.I. client can call.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/lang:«code»&amp;lt;/code&amp;gt; (new to [[Analytica 7.1]]) Specifies the User Interface language for Analytica (for menus, dialogs, error messages, built-in function descriptions, etc.). «code» is a language code such as &amp;lt;code&amp;gt;&#039;en&#039;&amp;lt;/code&amp;gt; (for English), &amp;lt;code&amp;gt;&#039;es&#039;&amp;lt;/code&amp;gt; (for Spanish), etc. The language is only used when the resource files exist for that language in &lt;br /&gt;
*:&amp;lt;code&amp;gt;«Analytica install folder»\Resources\«code»\&amp;lt;/code&amp;gt;&lt;br /&gt;
*: The command line overrides the registry setting &amp;lt;code&amp;gt;Language&amp;lt;/code&amp;gt; (if present) in the hive&lt;br /&gt;
*:&amp;lt;code&amp;gt;HKCU\Software\Lumina Decision Systems\Analytica&amp;lt;/code&amp;gt;&lt;br /&gt;
*:As of [[Analytica 7.1]], non-English UI options is an experimental feature and not complete. &lt;br /&gt;
&lt;br /&gt;
The remaining options exist for internal purposes and aren&#039;t generally used by end-users:&lt;br /&gt;
* &amp;lt;code&amp;gt;/embedding&amp;lt;/code&amp;gt;: The Windows operating system uses this parameter when launching Analytica as a OLE-link server. Not used by end-users. Causes Analytica to launch quietly (without a GUI), load an indicated model, and exposes key OLE interfaces to Windows enabling an external application to complete the link to the model&#039;s data.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/solverDevLic&amp;lt;/code&amp;gt;: This parameter is sometimes used by Analytica developers, but not generally by end-users. It indicates that the licenses from [https://solver.com Frontline Systems] found in the &amp;lt;code&amp;gt;Solver.lic&amp;lt;/code&amp;gt; file are developer licenses rather than runtime licenses. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/forcerelease&amp;lt;/code&amp;gt;: This parameter is used by Analytica quality assurance engineers during beta testing periods. It causes a beta release to behave like a final release build with regard to licensing.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;/config:&#039;&#039;filename&#039;&#039;&amp;lt;/code&amp;gt;: This is an option used by ACP3 (by Suan.exe) and not in Desktop Analytica.  The specified config file contains settings that define the ACP3 server configuration.&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/remote-debugging-port:«port»&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Exposes the Chrome DevTools protocol (remote debugging) endpoint of Analytica&#039;s embedded Chromium (CEF) browser windows on &amp;lt;code&amp;gt;127.0.0.1:«port»&amp;lt;/code&amp;gt;, so that an external tool — a benchmark driver, Claude Code, Puppeteer, or Chrome&#039;s &amp;lt;code&amp;gt;chrome://inspect&amp;lt;/code&amp;gt; page — can inspect and drive HTML-based windows such as the Assista chat window, HTML dialogs, and windows created with the &amp;lt;code&amp;gt;CefWindow&amp;lt;/code&amp;gt; function. The Chromium spelling &amp;lt;code&amp;gt;--remote-debugging-port=«port»&amp;lt;/code&amp;gt; is also accepted. Use a «port» of 0 to have a free (ephemeral) port picked automatically. Valid values are 0 or 1024 through 65535. The endpoint listens only on 127.0.0.1, and enabling it is per-process (all CEF windows of the process share one endpoint, with one DevTools target per window).&lt;br /&gt;
*: After launch, the process reports the outcome in &amp;lt;code&amp;gt;%LOCALAPPDATA%\Lumina\Analytica\CEF\«pid»\RemoteDebug.json&amp;lt;/code&amp;gt;, where «pid» is the process id of the launched Analytica.exe. On success this contains &amp;lt;code&amp;gt;&amp;quot;status&amp;quot;:&amp;quot;listening&amp;quot;&amp;lt;/code&amp;gt; and the actual port; when the requested port is already in use by another process, or CEF fails to initialize, it contains &amp;lt;code&amp;gt;&amp;quot;status&amp;quot;:&amp;quot;failed&amp;quot;&amp;lt;/code&amp;gt; with a reason, and a warning dialog is also shown. A tool that launches Analytica.exe with this option should read this file rather than connecting blindly, so that it cannot be fooled into talking to some other process that owns the port.&lt;br /&gt;
*: While remote debugging is enabled, each page in a CEF window exposes the JavaScript global &amp;lt;code&amp;gt;window.anaCefWindow&amp;lt;/code&amp;gt; with fields &amp;lt;code&amp;gt;pid&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;handle&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;kind&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt;, identifying which window a DevTools target belongs to. The &amp;lt;code&amp;gt;handle&amp;lt;/code&amp;gt; matches the handle of the corresponding &amp;lt;code&amp;gt;CefWindow&amp;lt;/code&amp;gt; object in the model.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/remote-allow-origins:«origins»&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) A comma-separated list of origins (or &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;) allowed to connect to the remote-debugging endpoint from a web page. This is only needed when the DevTools client is itself a web page, which sends an HTTP Origin header that Chromium rejects by default. Ordinary clients (Python or Node scripts, Puppeteer, &amp;lt;code&amp;gt;chrome://inspect&amp;lt;/code&amp;gt;) send no Origin header and connect without this option. The Chromium spelling &amp;lt;code&amp;gt;--remote-allow-origins=«origins»&amp;lt;/code&amp;gt; is also accepted.&lt;br /&gt;
}}&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/lib:&#039;&#039;filename&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Loads the Analytica library in &#039;&#039;filename&#039;&#039; into the &amp;lt;code&amp;gt;SysLib_Customizations&amp;lt;/code&amp;gt; system module, before the model named on the command line is opened. The library is then present no matter which model is loaded, and it stays loaded as models are closed and opened during the session. The option can be repeated to load several libraries. They load in the order given, all of them before the model.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /lib:&amp;quot;W:\Analytica\Libraries\Multivariate Distributions.ana&amp;quot; MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
*: A relative &#039;&#039;filename&#039;&#039; is looked for first in the directory that the process was launched from, then in the directories on the &amp;lt;code&amp;gt;AddLibraryDir&amp;lt;/code&amp;gt; library search path, then in the Analytica installation folder, and finally in the preferences folder. Path substitutions such as &amp;lt;code&amp;gt;%appdata%&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;%installdir%&amp;lt;/code&amp;gt; are expanded.&lt;br /&gt;
*: Each library loaded this way is its own namespace. Since &amp;lt;code&amp;gt;SysLib_Customizations&amp;lt;/code&amp;gt; is a private namespace, the library is not in namespace scope for the user&#039;s model. A model that wants to use one of these libraries must name it in its [[NamespaceImports]] attribute.&lt;br /&gt;
*: When the file is not found, or when it fails to load, a warning dialog names the file and Analytica continues to start up without it.&lt;br /&gt;
*: Uses for this include loading an [[MCP server in Analytica]] that works with whatever model is subsequently loaded, a benchmark driver, or a library that adds toolbar buttons or menu items.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/stores:&#039;&#039;filename&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Names the &amp;lt;code&amp;gt;FileProviders.config&amp;lt;/code&amp;gt; file that declares the [[Custom file system providers|custom file system providers]] this process should use. A file provider makes a URI-style path such as &amp;lt;code&amp;gt;repo://Sales/Q3.csv&amp;lt;/code&amp;gt; usable anywhere Analytica accepts a file name -- opening a model, [[ReadTextFile]], [[FileSystemListing]], and so on -- with the &amp;lt;code&amp;gt;repo&amp;lt;/code&amp;gt; prefix served by an HTTP storage service that you configure, or write yourself.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /stores:&amp;quot;C:\ACME\FileProviders.config&amp;quot; MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
*: A relative &#039;&#039;filename&#039;&#039; is resolved against the directory that the process was launched from.&lt;br /&gt;
*: This option &#039;&#039;&#039;overrides&#039;&#039;&#039; the other places the file is otherwise looked for -- the &amp;lt;code&amp;gt;ANALYTICA_FILE_PROVIDERS_CONFIG&amp;lt;/code&amp;gt; environment variable, the &amp;lt;code&amp;gt;FileProvidersConfig&amp;lt;/code&amp;gt; registry value, and a &amp;lt;code&amp;gt;FileProviders.config&amp;lt;/code&amp;gt; sitting in the same folder as the engine binary -- so it is mainly a deployment and debugging convenience. The registry value is the usual way to configure stores, and, with the environment variable, it is the only way to do it for [[ADE]] and ADEW, which have no command line of their own.&lt;br /&gt;
*: The configuration is read once, while the engine initializes, so changing it means restarting the process. When the file named is not there, no providers are registered.&lt;br /&gt;
*: The same option, with the same meaning, is accepted by &amp;lt;code&amp;gt;Suan.exe&amp;lt;/code&amp;gt; and by &amp;lt;code&amp;gt;Amp.exe&amp;lt;/code&amp;gt;.&lt;br /&gt;
*: Requires the {{Analytica Developer}} edition or better. For what to put in the file, and for the HTTP API a storage service implements, see &#039;&#039;&#039;[[Custom file system providers]]&#039;&#039;&#039;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Runs Analytica in &#039;&#039;automation mode&#039;&#039;, in which every modal dialog that would otherwise block is answered automatically, so that an unattended run never stops waiting for a person. Each dialog is answered either by a built-in default, or by a handler function that the model or a library registers with [[RegisterAutomationModalHandler]]. This is intended for unattended and agent-driven runs, such as a benchmark driver, an automated QA run, or a session driven by an AI coding agent through the [[MCP server in Analytica]].&lt;br /&gt;
*: This is &#039;&#039;&#039;not&#039;&#039;&#039; a headless mode. The user interface, diagram windows, HTML dialogs, and Assista all remain fully alive and usable; only the blocking dialogs are answered for you. The splash screen is suppressed, as with &amp;lt;code&amp;gt;/nosplash&amp;lt;/code&amp;gt;, and no recovery file is written, as with &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt; (give &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt; explicitly to keep auto-recovery on).&lt;br /&gt;
*: Some built-in defaults are deliberately conservative so that an unattended run cannot damage the model it is testing. In particular, &amp;quot;Save changes?&amp;quot; is answered &#039;&#039;&#039;No&#039;&#039;&#039;, so the model file on disk is never written when the process exits. File open and save prompts fail rather than choosing a file, unless a registered handler supplies a path.&lt;br /&gt;
*: For the full list of defaults, how to write and register a handler, and worked examples of driving Analytica this way, see &#039;&#039;&#039;[[Analytica Command Line/Automation]]&#039;&#039;&#039;.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /Automation /lib:BenchmarkDriver.ana MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/AutomationTrace:&#039;&#039;filename&#039;&#039;&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Writes a log of every modal dialog to &#039;&#039;filename&#039;&#039;, in JSON Lines format (one JSON object per line). Each dialog record names the kind of dialog, its caption and body text, the buttons it offered, the answer that was given, and where that answer came from. Records are appended, so a driver can pre-create the file and tail it while the run proceeds, and each record carries the process id so that concurrent runs remain distinguishable.&lt;br /&gt;
*: Used together with &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt;, this records what automation answered. Used &#039;&#039;&#039;without&#039;&#039;&#039; &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt;, it is an &#039;&#039;observe mode&#039;&#039;: dialogs appear and behave completely normally, and the log records what the user actually chose. This is a convenient way to inventory which dialogs a scenario poses before you automate it.&lt;br /&gt;
*: A relative &#039;&#039;filename&#039;&#039; is resolved against the directory the process was launched from. If the file cannot be opened, Analytica starts normally and simply produces no log.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /Automation /AutomationTrace:C:\Temp\run1.jsonl MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.3|2=|3=&lt;br /&gt;
* &amp;lt;code&amp;gt;/NoActivate&amp;lt;/code&amp;gt;: (new to [[Analytica 7.3]]) Starts Analytica without taking the keyboard focus from the application you are working in. The main window opens behind your current window (restored rather than maximized, since Windows has no way to maximize a window without activating it), the splash screen is suppressed as with &amp;lt;code&amp;gt;/nosplash&amp;lt;/code&amp;gt;, and Analytica never brings itself to the front while another application has the focus -- neither its own windows nor HTML windows such as Assista. Clicking an Analytica window, Alt+Tab, or the taskbar still activate it as usual.&lt;br /&gt;
*: This is meant for scripts and tools that drive Analytica in the background -- for example through the DevTools remote-debugging port or by posting window messages -- so that you can keep typing in another application while they run, without your keystrokes landing in Analytica. A dialog that needs an answer also opens without taking the focus; switch to Analytica to answer it, or use &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt;, which answers dialogs automatically.&lt;br /&gt;
*: &amp;lt;code&amp;gt;/NoActivate&amp;lt;/code&amp;gt; is implied by &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt;. It also takes effect when the program that launches Analytica asks Windows to show its window without activating it (&amp;lt;code&amp;gt;SW_SHOWNOACTIVATE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SW_SHOWNA&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;SW_SHOWMINNOACTIVE&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;STARTUPINFO&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /NoActivate MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
These two options place the main Analytica application window explicitly, instead of using the size and position that Analytica saved when it last exited. They are intended for benchmark automation and automated QA, where the window needs to be the same from one run to the next, or needs to be somewhere predictable.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/WindowSize:«width»,«height»&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Sets the size of the main application window, in screen pixels.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /WindowSize:1000,600&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/WindowXY:«x»,«y»&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Sets the position of the top left corner of the main application window, in screen coordinates. On a computer with more than one monitor, these coordinates can be negative, or larger than the size of the primary monitor, to place the window on another monitor.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /WindowSize:1000,600 /WindowXY:-1000,100&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Either option can be used without the other. The one you leave out keeps the value that was saved when Analytica last exited.&lt;br /&gt;
&lt;br /&gt;
The window is placed exactly where you ask for it. Unlike a position restored from a previous session, it is not nudged back onto a monitor, so a window that falls partly or entirely off screen stays where you put it. These options also take precedence over a maximized state saved from the previous session, and over the &#039;&#039;Run: Maximized&#039;&#039; setting of a Windows shortcut, so that the size you ask for is never ignored.&lt;br /&gt;
&lt;br /&gt;
The geometry given on the command line is &#039;&#039;&#039;not&#039;&#039;&#039; saved back to the registry when Analytica exits. An automated run that uses these options therefore leaves the window size and position of your own interactive sessions undisturbed.&lt;br /&gt;
&lt;br /&gt;
The size is that of the visible window frame. Windows surrounds that frame with an invisible drop shadow, so a script that measures the window using &amp;lt;code&amp;gt;GetWindowRect&amp;lt;/code&amp;gt; sees a few extra pixels on each side, while &amp;lt;code&amp;gt;DwmGetWindowAttribute&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;DWMWA_EXTENDED_FRAME_BOUNDS&amp;lt;/code&amp;gt; reports exactly the size that was requested.&lt;br /&gt;
&lt;br /&gt;
A value that is not two whole numbers, or a width or height that is not positive, produces the &#039;&#039;Unrecognized command line parameter&#039;&#039; warning and that option is ignored.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt;: (new to [[Analytica 7.2]]) Turns the &#039;&#039;Maintain recovery info&#039;&#039; preference off or on for this process only, without changing the stored preference. That preference controls the incremental autosave that lets Analytica offer to recover unsaved changes after a crash. With &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt;, no recovery file is written while the process runs, so if the process is killed rather than closed, the next launch does not stop at the &amp;quot;recover unsaved changes?&amp;quot; dialog. With &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt;, recovery information is maintained for the session even when the preference is off (in editions that support auto-recovery). A bare &amp;lt;code&amp;gt;/Autosave&amp;lt;/code&amp;gt; means &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt;; the spellings &amp;lt;code&amp;gt;/Autosave:0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--autosave=0&amp;lt;/code&amp;gt; are also accepted.&lt;br /&gt;
*: Example usage: &amp;lt;code&amp;gt;Analytica.exe /Autosave=0 MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
*: When &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt; is given and &amp;lt;code&amp;gt;/Autosave&amp;lt;/code&amp;gt; is not, &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt; is implied: an automated run is usually killed rather than closed, and would otherwise leave a recovery record behind for the next interactive launch to ask about. Give &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt; explicitly if an automated run needs auto-recovery on.&lt;br /&gt;
*: While the option is in effect, the &#039;&#039;Maintain recovery info&#039;&#039; checkbox in the &#039;&#039;&#039;Preferences&#039;&#039;&#039; dialog shows the effective state but is disabled. Recovery records left behind by earlier sessions are still offered at startup as usual; the option only controls whether this process writes one. A value other than 0 or 1 produces the &#039;&#039;Unrecognized command line parameter&#039;&#039; warning and the option is ignored.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
== Command line options for libraries ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;new in [[Analytica 7.2]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
An option that begins with a double minus, &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt;, and that is not one of the options listed above, does &#039;&#039;&#039;not&#039;&#039;&#039; produce the &#039;&#039;Unrecognized command line parameter&#039;&#039; warning. Analytica ignores it and passes it through, so that a library or a model can read it. This lets a library define command line options of its own without having to be built into Analytica. For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Analytica.exe --AssistaURL:&amp;lt;nowiki&amp;gt;&amp;quot;https://aaia.analytica.com/staging&amp;quot;&amp;lt;/nowiki&amp;gt; --OpenAssista MyModel.ana&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A library reads them with [[GetProcessInfo]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line:--AssistaURL&amp;quot;) &amp;amp;rarr; &#039;https://aaia.analytica.com/staging&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line:--OpenAssista&amp;quot;) &amp;amp;rarr; True&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line:--NotGiven&amp;quot;) &amp;amp;rarr; Null&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line parameters&amp;quot;) &amp;amp;rarr; [&#039;--AssistaURL&#039;, &#039;--OpenAssista&#039;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The value of such an option is the text that follows its colon or equal sign, and it must be quoted when it contains a space. An option that appears with no value reads as &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, and an option that is not on the command line at all reads as &amp;lt;code&amp;gt;Null&amp;lt;/code&amp;gt;, so a library can tell those two apart. A value always comes back as text, even when it looks like a number, so use [[ParseNumber]] when you want a number. When the same option appears more than once, the last occurrence is the one reported.&lt;br /&gt;
&lt;br /&gt;
Because Analytica accepts any unrecognized &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt; option silently, a misspelled one is simply ignored rather than reported. &amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line parameters&amp;quot;)&amp;lt;/code&amp;gt; returns the list of &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt; options that actually arrived, which is how a driver or library can check that it was passed what it expected.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt; options are not copied into the file names that Analytica opens, and they are not case-sensitive. When reading one, the leading dashes are optional, so &amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line:AssistaURL&amp;quot;)&amp;lt;/code&amp;gt; finds it as well.&lt;br /&gt;
&lt;br /&gt;
This mechanism is available in Analytica.exe, in ACP (Suan.exe) and in [[ADE]]. In ADE the command line is the one belonging to the host process that loaded ADE, which is the same command line that &amp;lt;code&amp;gt;GetProcessInfo(&amp;quot;Command line&amp;quot;)&amp;lt;/code&amp;gt; reports.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Accessing the Command line from a model ==&lt;br /&gt;
&lt;br /&gt;
The expression &amp;lt;code&amp;gt;[[GetProcessInfo]](&#039;Command line&#039;)&amp;lt;/code&amp;gt; returns the command line used to launch the process.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[GetProcessInfo]] -- especially &amp;lt;code&amp;gt;GetProcessInfo(&#039;Command line&#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
* [[Running a model in a command line workflow]]&lt;br /&gt;
* [[/Automation]]&lt;br /&gt;
* [[MCP server in Analytica]]&lt;br /&gt;
* [[Custom file system providers]]&lt;br /&gt;
* [[Assista]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Analytica_7.3&amp;diff=64733</id>
		<title>Analytica 7.3</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Analytica_7.3&amp;diff=64733"/>
		<updated>2026-10-27T22:17:33Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Redirected page to What&amp;#039;s new in Analytica 7.3?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[What&#039;s new in Analytica 7.3?]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.3%3F&amp;diff=64732</id>
		<title>What&#039;s new in Analytica 7.3?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.3%3F&amp;diff=64732"/>
		<updated>2026-10-27T22:12:57Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Analytica 7.3 is currently under development, and will be a future release of Analytica. The current official release is [[Analytica 7.1]], with [[Analytica 7.2]] in late stage beta testing. This page is under construction, and will list enhancements that are new to Analytica or ADE 7.3.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Template:ReleaseBar&amp;diff=64731</id>
		<title>Template:ReleaseBar</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Template:ReleaseBar&amp;diff=64731"/>
		<updated>2026-10-27T22:11:29Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Added 7.3 to the list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#svarset:anarelease|{{#urlget:anarelease|{{#svarget:anarelease|7.1}}}}}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#svarset:show_full|&lt;br /&gt;
  {{#ifexpr: {{#isReleaseBetween:1.0|{{#svarget:anarelease}}|6.5}} |1|}}&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#switch:{{#svarget:anarelease}}&lt;br /&gt;
| 4.6 =&lt;br /&gt;
| 5.0 =&lt;br /&gt;
| 5.1 =&lt;br /&gt;
| 5.2 =&lt;br /&gt;
| 5.3 =&lt;br /&gt;
| 5.4 =&lt;br /&gt;
| 6.0 =&lt;br /&gt;
| 6.1 =&lt;br /&gt;
| 6.2 =&lt;br /&gt;
| 6.3 =&lt;br /&gt;
| 6.4 =&lt;br /&gt;
| 6.5 =&lt;br /&gt;
| 6.6 =&lt;br /&gt;
| 7.0 =&lt;br /&gt;
| 7.1 =&lt;br /&gt;
| 7.2 =&lt;br /&gt;
| 7.3 =&lt;br /&gt;
| #default = {{#svarset:anarelease|7.1}}&lt;br /&gt;
}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{|class=&amp;quot;release-table&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
!  Release:&lt;br /&gt;
| &lt;br /&gt;
{{#if: {{#svarget:show_full}}&lt;br /&gt;
| &amp;lt;!-- SHOW COMPLETE LIST --&amp;gt;&lt;br /&gt;
{{ReleaseBarItem|4.6|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.3|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.4|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.3|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.4|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.5|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.6|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.3|{{#svarget:anarelease}}}}&lt;br /&gt;
| &amp;lt;!-- COLLAPSED VIEW --&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-rbar&amp;quot; style=&amp;quot;cursor:pointer;&amp;quot;&amp;gt;…&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;span id=&amp;quot;mw-customcollapsible-rbar&amp;quot;&lt;br /&gt;
        class=&amp;quot;mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
        style=&amp;quot;display:inline;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;•&amp;amp;nbsp;{{ReleaseBarItem|4.6|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.3|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|5.4|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.3|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.4|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.5|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|6.6|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.0|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.1|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.2|{{#svarget:anarelease}}}}&amp;amp;nbsp;•&amp;amp;nbsp;&lt;br /&gt;
{{ReleaseBarItem|7.3|{{#svarget:anarelease}}}}&lt;br /&gt;
}}&lt;br /&gt;
|}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#svarset:anamajor|{{#expr:floor{{#svarget:anarelease|7.1}}}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To display a release bar at the top of a page, insert the following at the top:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{ReleaseBar}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You must have a Release Bar visible for a &amp;lt;nowiki&amp;gt;{{Release|startVer|endVer|content}}&amp;lt;/nowiki&amp;gt; macro to work properly within the page.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Jev_library/Dishwasher_warranty_reliability&amp;diff=64730</id>
		<title>Jev library/Dishwasher warranty reliability</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Jev_library/Dishwasher_warranty_reliability&amp;diff=64730"/>
		<updated>2026-10-26T22:58:34Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Requirements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;An example model for the Jev library: turning technicians&#039; free-text service notes into a failure model, a warranty reserve, a spare-parts plan and a design decision.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Live Jev calls require the {{Analytica Developer}} edition or better with a Jev API key. However, the model also runs in any Analytica edition without an API key using cached Jev responses, which includes the warrantee model. [[Analytica 7.2]] or better recommended.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To run the model you need two files: [[media:Dishwasher warranty reliability.ana|Dishwasher warranty reliability.ana]] and [[media:Jev library.ana|Jev library.ana]], in the same folder. See [[#Downloads|Downloads]] for these and the data files.&lt;br /&gt;
&lt;br /&gt;
== The story ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Larkspur Appliance Company&#039;&#039;&#039; is a mid-sized appliance maker. In January 2024 it launched the &#039;&#039;&#039;QuietClean 24&#039;&#039;&#039;, a built-in dishwasher sold through kitchen retailers and installed by local contractors. Every unit carries a &#039;&#039;&#039;two-year parts-and-labor warranty&#039;&#039;&#039;. When something goes wrong, the owner calls Larkspur, an authorized technician visits, and the technician files a short note with the warranty claim.&lt;br /&gt;
&lt;br /&gt;
By 1 October 2026, about &#039;&#039;&#039;3,100&#039;&#039;&#039; QuietClean 24s are in kitchens, and technicians have made &#039;&#039;&#039;477&#039;&#039;&#039; warranty service calls. The notes read like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Cust reports DW not draining, standing water in tub. Filter clean, sump clear. Drain pump hums but impeller does not turn. Replaced drain pump DP-220. Tested good.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Homeowner reports water standing in the bottom. Filter completely clogged with food debris and labels. Cleaned filter, showed customer how to clean monthly. No parts used.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Customer reports E4 code on first use. Installed today. Garbage disposal knockout plug was never removed by installer. Knocked out plug, cleared.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;E4 code. Repl pump.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All four start with the same complaint: the dishwasher won&#039;t drain. Only the first is a failed drain pump. The second is a dirty filter, the third an installation mistake, and the fourth doesn&#039;t say which of the dishwasher&#039;s two pumps was replaced.&lt;br /&gt;
&lt;br /&gt;
Larkspur&#039;s reliability engineer has been asked three questions:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Warranty reserve.&#039;&#039;&#039; How much should Larkspur set aside for warranty costs over the next 12 months?&lt;br /&gt;
# &#039;&#039;&#039;Spare parts.&#039;&#039;&#039; How many of each part should the parts depot stock for the next quarter, so technicians rarely wait for one?&lt;br /&gt;
# &#039;&#039;&#039;The drain pump.&#039;&#039;&#039; A supplier offers an upgraded drain pump for &#039;&#039;&#039;$8.50 more per unit&#039;&#039;&#039;. Its accelerated life tests suggest it fails about half as often. Should new production switch?&lt;br /&gt;
&lt;br /&gt;
The structured data (install dates, service dates) shows &#039;&#039;when&#039;&#039; units needed service, but not &#039;&#039;why&#039;&#039;. The why is in the notes, and nobody has time to read and code 477 of them by hand every quarter. This model uses Jev to read them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Larkspur, the QuietClean 24 and all the data are fictional. See &amp;quot;How the data was made&amp;quot; below.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Using the model ==&lt;br /&gt;
&lt;br /&gt;
# Download the model and the library (see [[#Downloads|Downloads]]) into the same folder, and open the model.&lt;br /&gt;
# The top diagram shows the story, the &#039;&#039;&#039;Jev answers&#039;&#039;&#039; choice, the modules, and the key results:&lt;br /&gt;
#* &#039;&#039;&#039;Warranty cost, next 12 months&#039;&#039;&#039; and &#039;&#039;&#039;Warranty reserve (90th percentile)&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Spare parts to stock&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Upgrade savings per 1000 units&#039;&#039;&#039;, &#039;&#039;&#039;Probability the upgrade pays off&#039;&#039;&#039; and &#039;&#039;&#039;Break-even price of the upgrade&#039;&#039;&#039;&lt;br /&gt;
# Click a result and press the Result button. For uncertain results, try the &#039;&#039;Probability density&#039;&#039; and &#039;&#039;Statistics&#039;&#039; views.&lt;br /&gt;
&lt;br /&gt;
=== Saved answers or live calls ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Jev answers&#039;&#039;&#039; chooses where Jev&#039;s reading of the notes comes from:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Saved answers&#039;&#039;&#039; (the default) uses answers recorded when the model was built. It needs no API key, costs nothing, and gives the results described here.&lt;br /&gt;
* &#039;&#039;&#039;Live Jev calls&#039;&#039;&#039; sends all 477 notes to Jev again. This needs a Vercel AI Gateway API key in the &amp;lt;code&amp;gt;JEV_API_KEY&amp;lt;/code&amp;gt; environment variable (see [[Jev library#Setup]]). It takes a minute or two and costs about two cents. Jev&#039;s answers can vary slightly from run to run, so results will be close to the saved ones but not identical.&lt;br /&gt;
&lt;br /&gt;
Live calls matter when you change the questions. For example, you might edit a cause&#039;s description in &#039;&#039;&#039;Cause description&#039;&#039;&#039;, or add a cause, and want to see how Jev&#039;s classification changes.&lt;br /&gt;
&lt;br /&gt;
== What the model finds ==&lt;br /&gt;
&lt;br /&gt;
The numbers below come from the saved answers. Results with uncertainty are from Monte Carlo simulation with 1,000 samples, so they vary slightly between runs.&lt;br /&gt;
&lt;br /&gt;
=== Reading the notes ===&lt;br /&gt;
&lt;br /&gt;
Jev classified all 477 notes for &#039;&#039;&#039;about $0.02&#039;&#039;&#039;. An engineer had reviewed a random sample of 60 calls in detail, and Jev&#039;s most likely cause matches the engineer&#039;s on &#039;&#039;&#039;59 of the 60&#039;&#039;&#039; (&#039;&#039;Checking Jev&#039;s answers&#039;&#039; module). On average, Jev put &#039;&#039;&#039;97%&#039;&#039;&#039; of its probability on the cause the engineer found.&lt;br /&gt;
&lt;br /&gt;
The one disagreement is instructive: the note &#039;&#039;&amp;quot;E4 code. Repl pump.&amp;quot;&#039;&#039; Jev can&#039;t tell from that which pump was replaced, so it splits its probability between Drain pump and Circulation pump rather than guessing. The model keeps that split. A note like this counts as part of a drain-pump failure and part of a circulation-pump failure, which is the honest summary of what the note says.&lt;br /&gt;
&lt;br /&gt;
=== Failure rates by age ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Failure rates&#039;&#039;&#039; (calls per 1,000 units per year, from &#039;&#039;Calls per 1000 units per year&#039;&#039;) show three patterns that matter for planning:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Cause !! First 3 months !! 3–12 months !! 1–2 years !! Pattern&lt;br /&gt;
|-&lt;br /&gt;
| Installation error || ~140 || ~4 || ~1 || Almost all in the first weeks&lt;br /&gt;
|-&lt;br /&gt;
| Control board || ~46 || ~7 || ~6 || &amp;quot;Infant mortality&amp;quot;: early electronic failures&lt;br /&gt;
|-&lt;br /&gt;
| Drain pump || ~2 || ~13 || &#039;&#039;&#039;~66&#039;&#039;&#039; || &#039;&#039;&#039;Wear-out&#039;&#039;&#039;: rising sharply in the second year&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The drain pump is the story. It barely fails at first, but in the second year it is the biggest single cause of calls. The fleet is young: only units installed before October 2025 have reached their second year. So drain-pump calls will keep climbing as more of the fleet ages, even if nothing else changes. A forecast built from one overall failure rate would miss that, which is why the model estimates a rate for each age band.&lt;br /&gt;
&lt;br /&gt;
Each rate is uncertain, because it is estimated from a limited number of calls, and the model treats it as uncertain (a Gamma distribution). The second-year rates are the most uncertain, since the least fleet time has been observed at that age.&lt;br /&gt;
&lt;br /&gt;
=== Warranty reserve ===&lt;br /&gt;
&lt;br /&gt;
Over the next 12 months the model forecasts about &#039;&#039;&#039;350 warranty calls&#039;&#039;&#039; and an expected warranty cost of about &#039;&#039;&#039;$86,000&#039;&#039;&#039;, with a 90% probability interval of roughly &#039;&#039;&#039;$74,000–$98,000&#039;&#039;&#039;. A reserve at the 90th percentile is about &#039;&#039;&#039;$96,000&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The largest costs are drain pumps (about $18,000), door seals (about $18,000, mostly water-damage claims from leaks) and installation errors (about $15,000). The installation costs suggest something worth raising with Larkspur&#039;s installer network, whatever the reserve decision.&lt;br /&gt;
&lt;br /&gt;
=== Spare parts for next quarter ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Spare parts to stock&#039;&#039;&#039; gives, for each part, enough to cover the next quarter&#039;s demand with 95% probability. Demand counts only calls where Jev judged a part was needed; dirty filters and installation errors use no parts. The drain pump needs the deepest stock, about 32 units, followed by the control board at about 13. Change &#039;&#039;&#039;Parts service level&#039;&#039;&#039; to see the trade-off between stock and the risk of a technician waiting for a part.&lt;br /&gt;
&lt;br /&gt;
=== The drain-pump upgrade ===&lt;br /&gt;
&lt;br /&gt;
With the current pump, a new unit can expect about &#039;&#039;&#039;0.077 drain-pump failures&#039;&#039;&#039; during its two-year warranty. If the upgraded pump halves that, Larkspur saves about $6.60 per unit in warranty costs, less than the $8.50 the upgrade costs. &#039;&#039;&#039;Upgrade savings per 1000 units&#039;&#039;&#039; averages about &#039;&#039;&#039;−$1,900&#039;&#039;&#039;, and the upgrade pays off with only about &#039;&#039;&#039;13%&#039;&#039;&#039; probability.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Break-even price of the upgrade&#039;&#039;&#039; is about &#039;&#039;&#039;$6.60&#039;&#039;&#039;. That gives the engineer a constructive answer: not at $8.50, but worth revisiting if the supplier can get close to $6.60, or if second-year failure rates keep rising as more data arrives.&lt;br /&gt;
&lt;br /&gt;
=== Why not just search for &amp;quot;drain&amp;quot;? ===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Checking Jev&#039;s answers&#039;&#039; module compares Jev with the obvious shortcut: count the notes that mention &amp;quot;drain&amp;quot;. That finds &#039;&#039;&#039;165&#039;&#039;&#039; &amp;quot;drain&amp;quot; calls, compared with Jev&#039;s &#039;&#039;&#039;100&#039;&#039;&#039; drain-pump failures. The keyword sweeps in dirty filters, kinked or plugged drain hoses, and every note that says the unit &amp;quot;drained and filled normally&amp;quot; after a repair. Fed into the same upgrade calculation, the keyword count makes the upgrade look worth about &#039;&#039;&#039;+$400 per 1000 units&#039;&#039;&#039;: the wrong decision, for a reason no one would see in a summary table.&lt;br /&gt;
&lt;br /&gt;
=== A caution about rare events ===&lt;br /&gt;
&lt;br /&gt;
Jev rarely says &amp;quot;impossible&amp;quot;. It gives nearly every call a small probability, 2–3%, of having caused water damage to the home. Summed over hundreds of calls, those small probabilities add up to about &#039;&#039;&#039;31&#039;&#039;&#039; water-damage calls. Yet only &#039;&#039;&#039;17&#039;&#039;&#039; notes clearly describe damage: those where Jev&#039;s probability exceeds 0.5. For common events, summing probabilities is the right way to count. For a rare event like water damage, a small &amp;quot;background&amp;quot; probability on every call can swamp the real cases.&lt;br /&gt;
&lt;br /&gt;
The model therefore counts water damage as calls whose probability exceeds 0.5, chosen by &#039;&#039;&#039;Count water damage by&#039;&#039;&#039; in the &#039;&#039;Forecasts and decisions&#039;&#039; module. Switch it to &#039;&#039;Sum of probabilities&#039;&#039; to see the difference: the warranty reserve rises by about $25,000, and the drain-pump upgrade starts to look attractive. That is another wrong conclusion, this time from phantom claims. The general lesson: check Jev&#039;s answers against reviewed cases, and pay particular attention to rare outcomes.&lt;br /&gt;
&lt;br /&gt;
== How the model works ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Module !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Service call data&#039;&#039;&#039; || Two data tables, each imported from a CSV file: units installed per month, and the 477 calls (serial number, install and service dates, the technician&#039;s note, and the engineer&#039;s finding for reviewed calls).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Reading the notes with Jev&#039;&#039;&#039; || Asks Jev four questions about each note and collects the answers as Analytica arrays.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Failure rates&#039;&#039;&#039; || Counts calls by cause and age band, using Jev&#039;s probabilities, and divides by the fleet&#039;s unit-years in each band to give uncertain failure rates.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Forecasts and decisions&#039;&#039;&#039; || Projects fleet exposure forward, then computes the warranty cost forecast, spare-parts demand and the pump-upgrade comparison.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Checking Jev&#039;s answers&#039;&#039;&#039; || Compares Jev with the engineer&#039;s review and with a keyword count, and shows the two ways of counting water damage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== The questions Jev answers ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Note_questions&amp;lt;/code&amp;gt; asks four questions about each call. Jev sees the product name, the days since installation, and the note.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Question !! Jev type !! Answer used for&lt;br /&gt;
|-&lt;br /&gt;
| What was the root cause? (11 options, each with a description) || Choice || Failure counts and rates by cause&lt;br /&gt;
|-&lt;br /&gt;
| Did the repair need a replacement part (installed or ordered)? || Noul (yes/no) || Spare-parts demand&lt;br /&gt;
|-&lt;br /&gt;
| How severe was the problem for the household? (minor / degraded / unusable) || Score || Shown for each call; not used in the costs&lt;br /&gt;
|-&lt;br /&gt;
| Does the note report water damage to the home? || Noul (yes/no) || Water-damage claim costs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The cause question tells Jev to classify by &#039;&#039;&#039;what the technician found, not the symptom the customer reported&#039;&#039;&#039;. That instruction is what separates a failed drain pump from a clogged filter. The cause options and their descriptions live in an editable table, &#039;&#039;&#039;Cause description&#039;&#039;&#039;, rather than inside the expression.&lt;br /&gt;
&lt;br /&gt;
=== Counting with probabilities ===&lt;br /&gt;
&lt;br /&gt;
Rather than taking Jev&#039;s top answer for each note, &#039;&#039;&#039;Calls by cause&#039;&#039;&#039; adds up Jev&#039;s probabilities. A note that is 60% drain pump and 40% circulation pump adds 0.6 to one count and 0.4 to the other. Summed over many notes, this gives an unbiased count when the probabilities are calibrated, and it doesn&#039;t throw away what Jev knows about ambiguous notes.&lt;br /&gt;
&lt;br /&gt;
=== From counts to rates ===&lt;br /&gt;
&lt;br /&gt;
A rate is a count divided by exposure. &#039;&#039;&#039;Unit-years observed&#039;&#039;&#039; totals how long the fleet has spent in each age band, from the installation dates and the analysis date. Given &#039;&#039;n&#039;&#039; calls and &#039;&#039;E&#039;&#039; unit-years, the rate&#039;s uncertainty is &amp;lt;code&amp;gt;Gamma(n + 0.5, 1/E)&amp;lt;/code&amp;gt;, the Bayesian posterior for a Poisson rate. Forecasts multiply these rates by the fleet&#039;s projected unit-years over the next year or quarter, including the planned 115 new installations a month, and draw Poisson counts.&lt;br /&gt;
&lt;br /&gt;
== Adapting it to your own data ==&lt;br /&gt;
&lt;br /&gt;
To use this structure on real service records, import your own data into the two tables in &#039;&#039;&#039;Service call data&#039;&#039;&#039;: installations by month, and for each call the install date, service date and note. Then revise &#039;&#039;&#039;Cause description&#039;&#039;&#039;, &#039;&#039;&#039;Cost per call&#039;&#039;&#039; and &#039;&#039;&#039;Part number&#039;&#039;&#039; for your product. Before you trust the results:&lt;br /&gt;
&lt;br /&gt;
* Review a random sample of notes yourself, and compare in &#039;&#039;Checking Jev&#039;s answers&#039;&#039;. Fifty to a hundred is usually enough to find systematic misreadings.&lt;br /&gt;
* Watch rare outcomes, as described above.&lt;br /&gt;
* Keep &#039;&#039;&#039;Live Jev calls&#039;&#039;&#039; for when you change the questions. Each live evaluation of the whole batch is billed.&lt;br /&gt;
&lt;br /&gt;
For a few thousand notes, the cost of reading them with Jev is still under a dollar. To refresh a large batch only occasionally, save the answers, as this model does, rather than calling Jev every time the model is recomputed.&lt;br /&gt;
&lt;br /&gt;
== How the data was made ==&lt;br /&gt;
&lt;br /&gt;
The data is synthetic. A script (&amp;lt;code&amp;gt;Dishwasher example data/make_service_calls.py&amp;lt;/code&amp;gt;) simulates the fleet. It starts from installations each month, and gives each cause its own failure rate by age band: the drain pump wears out, control boards fail early, and installation errors appear in the first weeks. Each simulated call gets a technician-style note, made from varied templates with abbreviations and inconsistent style. About 15% of the notes are deliberately terse, such as &#039;&#039;&amp;quot;Pump bad - replaced.&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Because the data was simulated, the true cause of every call is known, which allows a check that a real company couldn&#039;t make. The true causes are kept in a separate file, &amp;lt;code&amp;gt;answer_key.csv&amp;lt;/code&amp;gt;, so the data the model reads, &amp;lt;code&amp;gt;service_calls.csv&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;installs_by_month.csv&amp;lt;/code&amp;gt;, holds only what real service records would hold. Jev&#039;s most likely cause was right on &#039;&#039;&#039;98.5%&#039;&#039;&#039; of all 477 calls. Every miss was a terse note that doesn&#039;t say which pump failed. Its total drain-pump count, 100.5, was close to the true 104.&lt;br /&gt;
&lt;br /&gt;
== Downloads ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! File !! What it is&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Dishwasher warranty reliability.ana|Dishwasher warranty reliability.ana]] || The model. It contains all the data and Jev&#039;s saved answers, so it runs on its own with the library.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Jev library.ana|Jev library.ana]] || The [[Jev library]]. The model links to it, so it must be in the same folder.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Service_calls.csv|service_calls.csv]] || The 477 service calls: serial number, install and service dates, the technician&#039;s note, and the engineer&#039;s finding for reviewed calls.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Installs_by_month.csv|installs_by_month.csv]] || Units installed each month.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Answer_key.csv|answer_key.csv]] || The simulated true cause, part need, impact and water damage of every call. The model doesn&#039;t use it; it is for checking Jev.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Saved_jev_answers.csv|saved_jev_answers.csv]] || Jev&#039;s answers for each call, as embedded in the model.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Saved_jev_raw.json|saved_jev_raw.json]] || The full Jev responses for all 477 calls (1.4 MB).&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Export_jev_answers.txt|export_jev_answers.txt]] || The Analytica expressions that saved the two files above from a live run.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Make_service_calls_py.txt|make_service_calls.py]] || The Python script that generated the data (see [[#How the data was made|How the data was made]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Build_model_py.txt|build_model.py]] || The Python script that wrote the first version of the model, which was then edited in Analytica. Don&#039;t rerun it on the current model.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Only the first two files are needed to run the model. The others are for re-importing the data, regenerating it, or checking Jev&#039;s answers yourself. To keep everything together, use this folder layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Dishwasher warranty reliability.ana&lt;br /&gt;
Jev library.ana&lt;br /&gt;
Dishwasher example data\&lt;br /&gt;
    service_calls.csv&lt;br /&gt;
    installs_by_month.csv&lt;br /&gt;
    answer_key.csv&lt;br /&gt;
    saved_jev_answers.csv&lt;br /&gt;
    saved_jev_raw.json&lt;br /&gt;
    export_jev_answers.txt&lt;br /&gt;
    make_service_calls.py&lt;br /&gt;
    build_model.py&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you download, save each file under the name shown in the &#039;&#039;File&#039;&#039; column. Your browser may suggest a name with underscores in place of spaces, such as &amp;lt;code&amp;gt;Jev_library.ana&amp;lt;/code&amp;gt;; rename it, because the model looks for &amp;lt;code&amp;gt;Jev library.ana&amp;lt;/code&amp;gt;. The wiki doesn&#039;t accept &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt; files, so the two scripts are stored as &amp;lt;code&amp;gt;.txt&amp;lt;/code&amp;gt; files: save them with the &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt; names shown.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Jev library]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Jev_library/Dishwasher_warranty_reliability&amp;diff=64729</id>
		<title>Jev library/Dishwasher warranty reliability</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Jev_library/Dishwasher_warranty_reliability&amp;diff=64729"/>
		<updated>2026-10-26T22:54:16Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Example model for the Jev library: dishwasher warranty reliability&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;An example model for the Jev library: turning technicians&#039; free-text service notes into a failure model, a warranty reserve, a spare-parts plan and a design decision.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Requires the {{Analytica Developer}} edition or better, release 7.2 or later. The model runs without an API key.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To run the model you need two files: [[media:Dishwasher warranty reliability.ana|Dishwasher warranty reliability.ana]] and [[media:Jev library.ana|Jev library.ana]], in the same folder. See [[#Downloads|Downloads]] for these and the data files.&lt;br /&gt;
&lt;br /&gt;
== The story ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Larkspur Appliance Company&#039;&#039;&#039; is a mid-sized appliance maker. In January 2024 it launched the &#039;&#039;&#039;QuietClean 24&#039;&#039;&#039;, a built-in dishwasher sold through kitchen retailers and installed by local contractors. Every unit carries a &#039;&#039;&#039;two-year parts-and-labor warranty&#039;&#039;&#039;. When something goes wrong, the owner calls Larkspur, an authorized technician visits, and the technician files a short note with the warranty claim.&lt;br /&gt;
&lt;br /&gt;
By 1 October 2026, about &#039;&#039;&#039;3,100&#039;&#039;&#039; QuietClean 24s are in kitchens, and technicians have made &#039;&#039;&#039;477&#039;&#039;&#039; warranty service calls. The notes read like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Cust reports DW not draining, standing water in tub. Filter clean, sump clear. Drain pump hums but impeller does not turn. Replaced drain pump DP-220. Tested good.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Homeowner reports water standing in the bottom. Filter completely clogged with food debris and labels. Cleaned filter, showed customer how to clean monthly. No parts used.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Customer reports E4 code on first use. Installed today. Garbage disposal knockout plug was never removed by installer. Knocked out plug, cleared.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;E4 code. Repl pump.&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All four start with the same complaint: the dishwasher won&#039;t drain. Only the first is a failed drain pump. The second is a dirty filter, the third an installation mistake, and the fourth doesn&#039;t say which of the dishwasher&#039;s two pumps was replaced.&lt;br /&gt;
&lt;br /&gt;
Larkspur&#039;s reliability engineer has been asked three questions:&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Warranty reserve.&#039;&#039;&#039; How much should Larkspur set aside for warranty costs over the next 12 months?&lt;br /&gt;
# &#039;&#039;&#039;Spare parts.&#039;&#039;&#039; How many of each part should the parts depot stock for the next quarter, so technicians rarely wait for one?&lt;br /&gt;
# &#039;&#039;&#039;The drain pump.&#039;&#039;&#039; A supplier offers an upgraded drain pump for &#039;&#039;&#039;$8.50 more per unit&#039;&#039;&#039;. Its accelerated life tests suggest it fails about half as often. Should new production switch?&lt;br /&gt;
&lt;br /&gt;
The structured data (install dates, service dates) shows &#039;&#039;when&#039;&#039; units needed service, but not &#039;&#039;why&#039;&#039;. The why is in the notes, and nobody has time to read and code 477 of them by hand every quarter. This model uses Jev to read them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Larkspur, the QuietClean 24 and all the data are fictional. See &amp;quot;How the data was made&amp;quot; below.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Using the model ==&lt;br /&gt;
&lt;br /&gt;
# Download the model and the library (see [[#Downloads|Downloads]]) into the same folder, and open the model.&lt;br /&gt;
# The top diagram shows the story, the &#039;&#039;&#039;Jev answers&#039;&#039;&#039; choice, the modules, and the key results:&lt;br /&gt;
#* &#039;&#039;&#039;Warranty cost, next 12 months&#039;&#039;&#039; and &#039;&#039;&#039;Warranty reserve (90th percentile)&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Spare parts to stock&#039;&#039;&#039;&lt;br /&gt;
#* &#039;&#039;&#039;Upgrade savings per 1000 units&#039;&#039;&#039;, &#039;&#039;&#039;Probability the upgrade pays off&#039;&#039;&#039; and &#039;&#039;&#039;Break-even price of the upgrade&#039;&#039;&#039;&lt;br /&gt;
# Click a result and press the Result button. For uncertain results, try the &#039;&#039;Probability density&#039;&#039; and &#039;&#039;Statistics&#039;&#039; views.&lt;br /&gt;
&lt;br /&gt;
=== Saved answers or live calls ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Jev answers&#039;&#039;&#039; chooses where Jev&#039;s reading of the notes comes from:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Saved answers&#039;&#039;&#039; (the default) uses answers recorded when the model was built. It needs no API key, costs nothing, and gives the results described here.&lt;br /&gt;
* &#039;&#039;&#039;Live Jev calls&#039;&#039;&#039; sends all 477 notes to Jev again. This needs a Vercel AI Gateway API key in the &amp;lt;code&amp;gt;JEV_API_KEY&amp;lt;/code&amp;gt; environment variable (see [[Jev library#Setup]]). It takes a minute or two and costs about two cents. Jev&#039;s answers can vary slightly from run to run, so results will be close to the saved ones but not identical.&lt;br /&gt;
&lt;br /&gt;
Live calls matter when you change the questions. For example, you might edit a cause&#039;s description in &#039;&#039;&#039;Cause description&#039;&#039;&#039;, or add a cause, and want to see how Jev&#039;s classification changes.&lt;br /&gt;
&lt;br /&gt;
== What the model finds ==&lt;br /&gt;
&lt;br /&gt;
The numbers below come from the saved answers. Results with uncertainty are from Monte Carlo simulation with 1,000 samples, so they vary slightly between runs.&lt;br /&gt;
&lt;br /&gt;
=== Reading the notes ===&lt;br /&gt;
&lt;br /&gt;
Jev classified all 477 notes for &#039;&#039;&#039;about $0.02&#039;&#039;&#039;. An engineer had reviewed a random sample of 60 calls in detail, and Jev&#039;s most likely cause matches the engineer&#039;s on &#039;&#039;&#039;59 of the 60&#039;&#039;&#039; (&#039;&#039;Checking Jev&#039;s answers&#039;&#039; module). On average, Jev put &#039;&#039;&#039;97%&#039;&#039;&#039; of its probability on the cause the engineer found.&lt;br /&gt;
&lt;br /&gt;
The one disagreement is instructive: the note &#039;&#039;&amp;quot;E4 code. Repl pump.&amp;quot;&#039;&#039; Jev can&#039;t tell from that which pump was replaced, so it splits its probability between Drain pump and Circulation pump rather than guessing. The model keeps that split. A note like this counts as part of a drain-pump failure and part of a circulation-pump failure, which is the honest summary of what the note says.&lt;br /&gt;
&lt;br /&gt;
=== Failure rates by age ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Failure rates&#039;&#039;&#039; (calls per 1,000 units per year, from &#039;&#039;Calls per 1000 units per year&#039;&#039;) show three patterns that matter for planning:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Cause !! First 3 months !! 3–12 months !! 1–2 years !! Pattern&lt;br /&gt;
|-&lt;br /&gt;
| Installation error || ~140 || ~4 || ~1 || Almost all in the first weeks&lt;br /&gt;
|-&lt;br /&gt;
| Control board || ~46 || ~7 || ~6 || &amp;quot;Infant mortality&amp;quot;: early electronic failures&lt;br /&gt;
|-&lt;br /&gt;
| Drain pump || ~2 || ~13 || &#039;&#039;&#039;~66&#039;&#039;&#039; || &#039;&#039;&#039;Wear-out&#039;&#039;&#039;: rising sharply in the second year&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The drain pump is the story. It barely fails at first, but in the second year it is the biggest single cause of calls. The fleet is young: only units installed before October 2025 have reached their second year. So drain-pump calls will keep climbing as more of the fleet ages, even if nothing else changes. A forecast built from one overall failure rate would miss that, which is why the model estimates a rate for each age band.&lt;br /&gt;
&lt;br /&gt;
Each rate is uncertain, because it is estimated from a limited number of calls, and the model treats it as uncertain (a Gamma distribution). The second-year rates are the most uncertain, since the least fleet time has been observed at that age.&lt;br /&gt;
&lt;br /&gt;
=== Warranty reserve ===&lt;br /&gt;
&lt;br /&gt;
Over the next 12 months the model forecasts about &#039;&#039;&#039;350 warranty calls&#039;&#039;&#039; and an expected warranty cost of about &#039;&#039;&#039;$86,000&#039;&#039;&#039;, with a 90% probability interval of roughly &#039;&#039;&#039;$74,000–$98,000&#039;&#039;&#039;. A reserve at the 90th percentile is about &#039;&#039;&#039;$96,000&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The largest costs are drain pumps (about $18,000), door seals (about $18,000, mostly water-damage claims from leaks) and installation errors (about $15,000). The installation costs suggest something worth raising with Larkspur&#039;s installer network, whatever the reserve decision.&lt;br /&gt;
&lt;br /&gt;
=== Spare parts for next quarter ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Spare parts to stock&#039;&#039;&#039; gives, for each part, enough to cover the next quarter&#039;s demand with 95% probability. Demand counts only calls where Jev judged a part was needed; dirty filters and installation errors use no parts. The drain pump needs the deepest stock, about 32 units, followed by the control board at about 13. Change &#039;&#039;&#039;Parts service level&#039;&#039;&#039; to see the trade-off between stock and the risk of a technician waiting for a part.&lt;br /&gt;
&lt;br /&gt;
=== The drain-pump upgrade ===&lt;br /&gt;
&lt;br /&gt;
With the current pump, a new unit can expect about &#039;&#039;&#039;0.077 drain-pump failures&#039;&#039;&#039; during its two-year warranty. If the upgraded pump halves that, Larkspur saves about $6.60 per unit in warranty costs, less than the $8.50 the upgrade costs. &#039;&#039;&#039;Upgrade savings per 1000 units&#039;&#039;&#039; averages about &#039;&#039;&#039;−$1,900&#039;&#039;&#039;, and the upgrade pays off with only about &#039;&#039;&#039;13%&#039;&#039;&#039; probability.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Break-even price of the upgrade&#039;&#039;&#039; is about &#039;&#039;&#039;$6.60&#039;&#039;&#039;. That gives the engineer a constructive answer: not at $8.50, but worth revisiting if the supplier can get close to $6.60, or if second-year failure rates keep rising as more data arrives.&lt;br /&gt;
&lt;br /&gt;
=== Why not just search for &amp;quot;drain&amp;quot;? ===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;Checking Jev&#039;s answers&#039;&#039; module compares Jev with the obvious shortcut: count the notes that mention &amp;quot;drain&amp;quot;. That finds &#039;&#039;&#039;165&#039;&#039;&#039; &amp;quot;drain&amp;quot; calls, compared with Jev&#039;s &#039;&#039;&#039;100&#039;&#039;&#039; drain-pump failures. The keyword sweeps in dirty filters, kinked or plugged drain hoses, and every note that says the unit &amp;quot;drained and filled normally&amp;quot; after a repair. Fed into the same upgrade calculation, the keyword count makes the upgrade look worth about &#039;&#039;&#039;+$400 per 1000 units&#039;&#039;&#039;: the wrong decision, for a reason no one would see in a summary table.&lt;br /&gt;
&lt;br /&gt;
=== A caution about rare events ===&lt;br /&gt;
&lt;br /&gt;
Jev rarely says &amp;quot;impossible&amp;quot;. It gives nearly every call a small probability, 2–3%, of having caused water damage to the home. Summed over hundreds of calls, those small probabilities add up to about &#039;&#039;&#039;31&#039;&#039;&#039; water-damage calls. Yet only &#039;&#039;&#039;17&#039;&#039;&#039; notes clearly describe damage: those where Jev&#039;s probability exceeds 0.5. For common events, summing probabilities is the right way to count. For a rare event like water damage, a small &amp;quot;background&amp;quot; probability on every call can swamp the real cases.&lt;br /&gt;
&lt;br /&gt;
The model therefore counts water damage as calls whose probability exceeds 0.5, chosen by &#039;&#039;&#039;Count water damage by&#039;&#039;&#039; in the &#039;&#039;Forecasts and decisions&#039;&#039; module. Switch it to &#039;&#039;Sum of probabilities&#039;&#039; to see the difference: the warranty reserve rises by about $25,000, and the drain-pump upgrade starts to look attractive. That is another wrong conclusion, this time from phantom claims. The general lesson: check Jev&#039;s answers against reviewed cases, and pay particular attention to rare outcomes.&lt;br /&gt;
&lt;br /&gt;
== How the model works ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Module !! What it does&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Service call data&#039;&#039;&#039; || Two data tables, each imported from a CSV file: units installed per month, and the 477 calls (serial number, install and service dates, the technician&#039;s note, and the engineer&#039;s finding for reviewed calls).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Reading the notes with Jev&#039;&#039;&#039; || Asks Jev four questions about each note and collects the answers as Analytica arrays.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Failure rates&#039;&#039;&#039; || Counts calls by cause and age band, using Jev&#039;s probabilities, and divides by the fleet&#039;s unit-years in each band to give uncertain failure rates.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Forecasts and decisions&#039;&#039;&#039; || Projects fleet exposure forward, then computes the warranty cost forecast, spare-parts demand and the pump-upgrade comparison.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Checking Jev&#039;s answers&#039;&#039;&#039; || Compares Jev with the engineer&#039;s review and with a keyword count, and shows the two ways of counting water damage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== The questions Jev answers ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Note_questions&amp;lt;/code&amp;gt; asks four questions about each call. Jev sees the product name, the days since installation, and the note.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Question !! Jev type !! Answer used for&lt;br /&gt;
|-&lt;br /&gt;
| What was the root cause? (11 options, each with a description) || Choice || Failure counts and rates by cause&lt;br /&gt;
|-&lt;br /&gt;
| Did the repair need a replacement part (installed or ordered)? || Noul (yes/no) || Spare-parts demand&lt;br /&gt;
|-&lt;br /&gt;
| How severe was the problem for the household? (minor / degraded / unusable) || Score || Shown for each call; not used in the costs&lt;br /&gt;
|-&lt;br /&gt;
| Does the note report water damage to the home? || Noul (yes/no) || Water-damage claim costs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The cause question tells Jev to classify by &#039;&#039;&#039;what the technician found, not the symptom the customer reported&#039;&#039;&#039;. That instruction is what separates a failed drain pump from a clogged filter. The cause options and their descriptions live in an editable table, &#039;&#039;&#039;Cause description&#039;&#039;&#039;, rather than inside the expression.&lt;br /&gt;
&lt;br /&gt;
=== Counting with probabilities ===&lt;br /&gt;
&lt;br /&gt;
Rather than taking Jev&#039;s top answer for each note, &#039;&#039;&#039;Calls by cause&#039;&#039;&#039; adds up Jev&#039;s probabilities. A note that is 60% drain pump and 40% circulation pump adds 0.6 to one count and 0.4 to the other. Summed over many notes, this gives an unbiased count when the probabilities are calibrated, and it doesn&#039;t throw away what Jev knows about ambiguous notes.&lt;br /&gt;
&lt;br /&gt;
=== From counts to rates ===&lt;br /&gt;
&lt;br /&gt;
A rate is a count divided by exposure. &#039;&#039;&#039;Unit-years observed&#039;&#039;&#039; totals how long the fleet has spent in each age band, from the installation dates and the analysis date. Given &#039;&#039;n&#039;&#039; calls and &#039;&#039;E&#039;&#039; unit-years, the rate&#039;s uncertainty is &amp;lt;code&amp;gt;Gamma(n + 0.5, 1/E)&amp;lt;/code&amp;gt;, the Bayesian posterior for a Poisson rate. Forecasts multiply these rates by the fleet&#039;s projected unit-years over the next year or quarter, including the planned 115 new installations a month, and draw Poisson counts.&lt;br /&gt;
&lt;br /&gt;
== Adapting it to your own data ==&lt;br /&gt;
&lt;br /&gt;
To use this structure on real service records, import your own data into the two tables in &#039;&#039;&#039;Service call data&#039;&#039;&#039;: installations by month, and for each call the install date, service date and note. Then revise &#039;&#039;&#039;Cause description&#039;&#039;&#039;, &#039;&#039;&#039;Cost per call&#039;&#039;&#039; and &#039;&#039;&#039;Part number&#039;&#039;&#039; for your product. Before you trust the results:&lt;br /&gt;
&lt;br /&gt;
* Review a random sample of notes yourself, and compare in &#039;&#039;Checking Jev&#039;s answers&#039;&#039;. Fifty to a hundred is usually enough to find systematic misreadings.&lt;br /&gt;
* Watch rare outcomes, as described above.&lt;br /&gt;
* Keep &#039;&#039;&#039;Live Jev calls&#039;&#039;&#039; for when you change the questions. Each live evaluation of the whole batch is billed.&lt;br /&gt;
&lt;br /&gt;
For a few thousand notes, the cost of reading them with Jev is still under a dollar. To refresh a large batch only occasionally, save the answers, as this model does, rather than calling Jev every time the model is recomputed.&lt;br /&gt;
&lt;br /&gt;
== How the data was made ==&lt;br /&gt;
&lt;br /&gt;
The data is synthetic. A script (&amp;lt;code&amp;gt;Dishwasher example data/make_service_calls.py&amp;lt;/code&amp;gt;) simulates the fleet. It starts from installations each month, and gives each cause its own failure rate by age band: the drain pump wears out, control boards fail early, and installation errors appear in the first weeks. Each simulated call gets a technician-style note, made from varied templates with abbreviations and inconsistent style. About 15% of the notes are deliberately terse, such as &#039;&#039;&amp;quot;Pump bad - replaced.&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Because the data was simulated, the true cause of every call is known, which allows a check that a real company couldn&#039;t make. The true causes are kept in a separate file, &amp;lt;code&amp;gt;answer_key.csv&amp;lt;/code&amp;gt;, so the data the model reads, &amp;lt;code&amp;gt;service_calls.csv&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;installs_by_month.csv&amp;lt;/code&amp;gt;, holds only what real service records would hold. Jev&#039;s most likely cause was right on &#039;&#039;&#039;98.5%&#039;&#039;&#039; of all 477 calls. Every miss was a terse note that doesn&#039;t say which pump failed. Its total drain-pump count, 100.5, was close to the true 104.&lt;br /&gt;
&lt;br /&gt;
== Downloads ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! File !! What it is&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Dishwasher warranty reliability.ana|Dishwasher warranty reliability.ana]] || The model. It contains all the data and Jev&#039;s saved answers, so it runs on its own with the library.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Jev library.ana|Jev library.ana]] || The [[Jev library]]. The model links to it, so it must be in the same folder.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Service_calls.csv|service_calls.csv]] || The 477 service calls: serial number, install and service dates, the technician&#039;s note, and the engineer&#039;s finding for reviewed calls.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Installs_by_month.csv|installs_by_month.csv]] || Units installed each month.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Answer_key.csv|answer_key.csv]] || The simulated true cause, part need, impact and water damage of every call. The model doesn&#039;t use it; it is for checking Jev.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Saved_jev_answers.csv|saved_jev_answers.csv]] || Jev&#039;s answers for each call, as embedded in the model.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Saved_jev_raw.json|saved_jev_raw.json]] || The full Jev responses for all 477 calls (1.4 MB).&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Export_jev_answers.txt|export_jev_answers.txt]] || The Analytica expressions that saved the two files above from a live run.&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Make_service_calls_py.txt|make_service_calls.py]] || The Python script that generated the data (see [[#How the data was made|How the data was made]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[media:Build_model_py.txt|build_model.py]] || The Python script that wrote the first version of the model, which was then edited in Analytica. Don&#039;t rerun it on the current model.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Only the first two files are needed to run the model. The others are for re-importing the data, regenerating it, or checking Jev&#039;s answers yourself. To keep everything together, use this folder layout:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Dishwasher warranty reliability.ana&lt;br /&gt;
Jev library.ana&lt;br /&gt;
Dishwasher example data\&lt;br /&gt;
    service_calls.csv&lt;br /&gt;
    installs_by_month.csv&lt;br /&gt;
    answer_key.csv&lt;br /&gt;
    saved_jev_answers.csv&lt;br /&gt;
    saved_jev_raw.json&lt;br /&gt;
    export_jev_answers.txt&lt;br /&gt;
    make_service_calls.py&lt;br /&gt;
    build_model.py&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you download, save each file under the name shown in the &#039;&#039;File&#039;&#039; column. Your browser may suggest a name with underscores in place of spaces, such as &amp;lt;code&amp;gt;Jev_library.ana&amp;lt;/code&amp;gt;; rename it, because the model looks for &amp;lt;code&amp;gt;Jev library.ana&amp;lt;/code&amp;gt;. The wiki doesn&#039;t accept &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt; files, so the two scripts are stored as &amp;lt;code&amp;gt;.txt&amp;lt;/code&amp;gt; files: save them with the &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt; names shown.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Jev library]]&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Jev_library&amp;diff=64728</id>
		<title>Jev library</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Jev_library&amp;diff=64728"/>
		<updated>2026-10-26T22:54:11Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Getting-started guide and reference for the Jev library, with downloads and examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Function libraries]]&lt;br /&gt;
[[category:Integration Functions‏‎]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Requires the {{Analytica Developer}} edition or better&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Jev library lets an Analytica model ask TypeSafe&#039;s Jev model questions about text, and get back probabilities.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Download:&#039;&#039;&#039;&lt;br /&gt;
* [[media:Jev library.ana|Jev library.ana]]: the library.&lt;br /&gt;
* [[media:Test of Jev library.ana|Test of Jev library.ana]]: its regression tests (see [[#The test model|The test model]]).&lt;br /&gt;
&lt;br /&gt;
Save them in the same folder, named exactly as shown. Your browser may suggest names with underscores, such as &amp;lt;code&amp;gt;Jev_library.ana&amp;lt;/code&amp;gt;; rename them, because the test model looks for &amp;lt;code&amp;gt;Jev library.ana&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Requires Analytica 7.2 or later. Using Jev also needs a Vercel AI Gateway API key (see [[#Setup|Setup]]).&lt;br /&gt;
&lt;br /&gt;
== What Jev does for a model ==&lt;br /&gt;
&lt;br /&gt;
Most Analytica models start from numbers: costs, counts, probabilities. Much of the evidence behind those numbers arrives as text: customer emails, incident reports, inspection notes, contract clauses, news items, survey comments. Jev turns that text into numbers your model can use.&lt;br /&gt;
&lt;br /&gt;
You give Jev a piece of text (the &#039;&#039;&#039;state&#039;&#039;&#039;) and one or more well-defined questions. It answers each question with a &#039;&#039;&#039;probability&#039;&#039;&#039;, not with prose. For example, given&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Please refund the duplicate charge. This is urgent.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you can ask:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Question !! Kind !! Example answer&lt;br /&gt;
|-&lt;br /&gt;
| Is a refund requested? || yes/no (&#039;&#039;&#039;Noul&#039;&#039;&#039;) || 0.99, the probability of yes&lt;br /&gt;
|-&lt;br /&gt;
| Is this about billing, a technical problem, or something else? || category (&#039;&#039;&#039;Choice&#039;&#039;&#039;) || &amp;lt;code&amp;gt;billing&amp;lt;/code&amp;gt;, with probabilities 0.93 / 0.04 / 0.03&lt;br /&gt;
|-&lt;br /&gt;
| How urgent is it: not urgent, somewhat urgent, or urgent? || ordered scale (&#039;&#039;&#039;Score&#039;&#039;&#039;) || probabilities 0.02 / 0.18 / 0.80 for the three levels&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Because the answers are probabilities, they slot into a model the way any other uncertain quantity does. You can compute expected costs, set decision thresholds, send borderline cases to a person, or make them a chance variable.&lt;br /&gt;
&lt;br /&gt;
Jev is a service run by TypeSafe ([https://docs.typesafe.ai/introduction docs.typesafe.ai]). This library sends requests to it through the Vercel AI Gateway. Each call goes over the internet, costs a small amount (about $0.00002 for a short message with three questions), and sends your text to Vercel and TypeSafe.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Analytica 7.2 or later&#039;&#039;&#039;, Developer edition or better. The library stores its API key in an Analytica &#039;&#039;Secret&#039;&#039; object, which was introduced in 7.2.&lt;br /&gt;
# &#039;&#039;&#039;Add the library to your model.&#039;&#039;&#039; Download [[media:Jev library.ana|Jev library.ana]], then use &#039;&#039;File &amp;gt; Add Module…&#039;&#039; and choose it, preferably as a linked library so that later fixes reach your model.&lt;br /&gt;
# &#039;&#039;&#039;Get a Vercel AI Gateway API key&#039;&#039;&#039;, from the AI Gateway section of your Vercel dashboard.&lt;br /&gt;
# &#039;&#039;&#039;Put the key in the &amp;lt;code&amp;gt;JEV_API_KEY&amp;lt;/code&amp;gt; environment variable.&#039;&#039;&#039; On Windows, open &#039;&#039;Edit environment variables for your account&#039;&#039; from the Start menu, add &amp;lt;code&amp;gt;JEV_API_KEY&amp;lt;/code&amp;gt;, and paste the key as its value. &#039;&#039;&#039;Restart Analytica afterward&#039;&#039;&#039;, because a running program doesn&#039;t see a new environment variable.&lt;br /&gt;
&lt;br /&gt;
The library never stores, displays or sends the key itself. When a call is made, Analytica substitutes the key into the request header, and only for requests to &amp;lt;code&amp;gt;https://ai-gateway.vercel.sh&amp;lt;/code&amp;gt;. If the variable isn&#039;t set, any call stops with an evaluation error, and nothing is sent. Don&#039;t put the key in a Definition or in the text you send.&lt;br /&gt;
&lt;br /&gt;
== Your first question ==&lt;br /&gt;
&lt;br /&gt;
Create a variable and give it this Definition:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Local request := JevRequest(&lt;br /&gt;
    &#039;Please refund the duplicate charge.&#039;,&lt;br /&gt;
    JevQuestions(&lt;br /&gt;
        refund: JevNoul(&#039;Is a refund requested?&#039;)&lt;br /&gt;
    )&lt;br /&gt;
);&lt;br /&gt;
Local response := request -&amp;gt; JevCall();&lt;br /&gt;
response -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you evaluate it, the result is a single number, such as 0.99: Jev&#039;s probability that the message asks for a refund.&lt;br /&gt;
&lt;br /&gt;
Here is what each part does:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;JevRequest(state, questions)&amp;lt;/code&amp;gt; bundles the text with the questions to ask about it. Building it doesn&#039;t contact anything.&lt;br /&gt;
* &amp;lt;code&amp;gt;JevQuestions(refund: …)&amp;lt;/code&amp;gt; lists the questions. &amp;lt;code&amp;gt;refund&amp;lt;/code&amp;gt; is a name you make up. It isn&#039;t a variable in your model; it is the label you use to find this question&#039;s answer in the response.&lt;br /&gt;
* &amp;lt;code&amp;gt;JevNoul(&#039;…&#039;)&amp;lt;/code&amp;gt; defines a yes/no question.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevCall()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; sends the request and returns a &#039;&#039;&#039;JevResponse&#039;&#039;&#039;. JevResponse is a &#039;&#039;struct&#039;&#039;: a value with named fields, which you read with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;-&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;response -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; reads the response&#039;s answers, then the answer to the &amp;lt;code&amp;gt;refund&amp;lt;/code&amp;gt; question, then its probability.&lt;br /&gt;
&lt;br /&gt;
To see everything Jev returned, end the Definition with &amp;lt;code&amp;gt;response&amp;lt;/code&amp;gt; instead. The result window then shows the JevResponse struct, and you can click into its fields.&lt;br /&gt;
&lt;br /&gt;
=== Keep the call in its own variable ===&lt;br /&gt;
&lt;br /&gt;
Analytica caches results, so viewing a result again doesn&#039;t call Jev again. It does call again whenever the variable is recomputed, for example after you change something it depends on. So in a real model, give the call its own variable and let other variables read from it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Variable Support_response := JevRequest(Message_text, Support_questions) -&amp;gt; JevCall()&lt;br /&gt;
Variable P_refund         := Support_response -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul&lt;br /&gt;
Variable Category         := Support_response -&amp;gt; answers -&amp;gt; category -&amp;gt; choice&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then edit and recompute &amp;lt;code&amp;gt;P_refund&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Category&amp;lt;/code&amp;gt; as often as you like without making new calls. In this guide, &amp;lt;code&amp;gt;Variable X := …&amp;lt;/code&amp;gt; is shorthand for a variable named X with that Definition. &amp;lt;code&amp;gt;Message_text&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Support_questions&amp;lt;/code&amp;gt; stand for variables of your own.&lt;br /&gt;
&lt;br /&gt;
== The three kinds of question ==&lt;br /&gt;
&lt;br /&gt;
=== Noul: yes/no ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevNoul(&#039;Does the customer threaten to cancel?&#039;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The answer&#039;s &amp;lt;code&amp;gt;noul&amp;lt;/code&amp;gt; field is the probability that the answer is &#039;&#039;&#039;yes&#039;&#039;&#039;, from 0 to 1. It isn&#039;t a degree or intensity. A value of 0.5 means &amp;quot;can&#039;t tell&amp;quot;, not &amp;quot;half cancelled&amp;quot;. Phrase the question so that yes is the case you care about.&lt;br /&gt;
&lt;br /&gt;
When the boundary is subtle, add criteria spelling out what counts as yes and what counts as no:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevNoul(&lt;br /&gt;
    &#039;Does the customer threaten to cancel?&#039;,&lt;br /&gt;
    JevNoulCriteria(&lt;br /&gt;
        &#039;The customer says they will cancel or leave unless something changes.&#039;,&lt;br /&gt;
        &#039;No cancellation is mentioned, or it is mentioned only hypothetically.&#039;&lt;br /&gt;
    )&lt;br /&gt;
)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TypeSafe suggests 0.7 as a starting threshold for treating an answer as yes and 0.3 for no, with values in between sent for human review. Tune those thresholds on your own cases.&lt;br /&gt;
&lt;br /&gt;
=== Choice: one of several categories ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevChoice(&lt;br /&gt;
    &#039;Which department should handle this message?&#039;,&lt;br /&gt;
    JevChoiceCriteria(&lt;br /&gt;
        billing:   &#039;Charges, invoices, refunds and payment methods&#039;,&lt;br /&gt;
        technical: &#039;Problems using the product&#039;,&lt;br /&gt;
        sales:     &#039;Questions about buying or upgrading&#039;,&lt;br /&gt;
        other:     &#039;Anything else&#039;&lt;br /&gt;
    )&lt;br /&gt;
)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The answer has these fields:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;choice&amp;lt;/code&amp;gt; || the most likely option name, for example &amp;lt;code&amp;gt;&#039;billing&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;probabilities&amp;lt;/code&amp;gt; || the probability of each option, summing to 1, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;probabilities -&amp;gt; technical&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;confidence&amp;lt;/code&amp;gt; || 0 to 1: how concentrated the probability is on the top option (see [[#Good practice and caveats|Good practice and caveats]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Options can be 2 to 255 names, each with a description. Include an &amp;lt;code&amp;gt;other&amp;lt;/code&amp;gt; option unless the categories are truly exhaustive. If an option name isn&#039;t a valid identifier, for example one containing spaces, see &amp;lt;code&amp;gt;JevChoiceCriteria&amp;lt;/code&amp;gt; in the reference.&lt;br /&gt;
&lt;br /&gt;
=== Score: a position on an ordered scale ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevScore(&lt;br /&gt;
    &#039;How severe is the reported incident?&#039;,&lt;br /&gt;
    [&#039;Cosmetic issue&#039;, &#039;Workaround exists&#039;, &#039;Service unavailable&#039;]&lt;br /&gt;
)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
List 2 to 10 levels, from lowest to highest. &#039;&#039;&#039;The levels are numbered from 0&#039;&#039;&#039;, so these three are levels 0, 1 and 2. That differs from Analytica&#039;s usual numbering from 1. The answer has these fields:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;probabilities&amp;lt;/code&amp;gt; || the probability of each level, keyed &amp;lt;code&amp;gt;&#039;0&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;1&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;2&#039;&amp;lt;/code&amp;gt;, …&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt; || the &#039;&#039;expected&#039;&#039; level, Σ level × probability. It ranges from 0 to the top level number, so a score of 1.43 means &amp;quot;between &#039;&#039;Workaround exists&#039;&#039; and &#039;&#039;Service unavailable&#039;&#039;, nearer the former&amp;quot;. Divide by (number of levels − 1) to rescale it to 0–1.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;legend&amp;lt;/code&amp;gt; || each level number&#039;s description, as you supplied it&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;confidence&amp;lt;/code&amp;gt; || 0 to 1: how concentrated the probability is on one level&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Because the level keys are numbers, read them with the function form of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;-&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;`-&amp;gt;`(Support_response -&amp;gt; answers -&amp;gt; severity -&amp;gt; probabilities, &#039;2&#039;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The easier route is usually &amp;lt;code&amp;gt;JevProbabilityArray&amp;lt;/code&amp;gt; ([[#Using the answers in a model|Using the answers in a model]]).&lt;br /&gt;
&lt;br /&gt;
=== Asking several questions at once ===&lt;br /&gt;
&lt;br /&gt;
Put any mix of questions into one &amp;lt;code&amp;gt;JevQuestions&amp;lt;/code&amp;gt;. They are all answered in one call, each independently, using the same text. Adding questions barely changes the response time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Variable Support_questions := JevQuestions(&lt;br /&gt;
    refund:   JevNoul(&#039;Is a refund requested?&#039;),&lt;br /&gt;
    category: JevChoice(&#039;Which department should handle this?&#039;,&lt;br /&gt;
                  JevChoiceCriteria(billing: &#039;Charges and refunds&#039;, technical: &#039;Product problems&#039;, other: &#039;Anything else&#039;)),&lt;br /&gt;
    urgency:  JevScore(&#039;How urgent is the message?&#039;, [&#039;Not urgent&#039;, &#039;Somewhat urgent&#039;, &#039;Urgent&#039;])&lt;br /&gt;
)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TypeSafe recommends many small, specific questions over one complicated one. Ask about each factor separately, then combine the answers with your own formula in Analytica, where the weights are visible and easy to change.&lt;br /&gt;
&lt;br /&gt;
== Using the answers in a model ==&lt;br /&gt;
&lt;br /&gt;
=== Probabilities as an Analytica array ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;JevProbabilityArray(answer)&amp;lt;/code&amp;gt; returns an answer&#039;s probabilities as an array over a local index named &amp;lt;code&amp;gt;Outcome&amp;lt;/code&amp;gt;, ready to graph or compute with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevProbabilityArray(Support_response -&amp;gt; answers -&amp;gt; urgency)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Question kind !! Outcome index&lt;br /&gt;
|-&lt;br /&gt;
| Noul || &amp;lt;code&amp;gt;&#039;true&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;false&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Choice || the option names&lt;br /&gt;
|-&lt;br /&gt;
| Score || 0, 1, 2, …&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Some common patterns ===&lt;br /&gt;
&lt;br /&gt;
The expected cost of handling a message, given a cost per category, where &amp;lt;code&amp;gt;Category_cost&amp;lt;/code&amp;gt; is indexed by your own &amp;lt;code&amp;gt;Dept&amp;lt;/code&amp;gt; index:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Index Dept := [&#039;billing&#039;, &#039;technical&#039;, &#039;other&#039;]&lt;br /&gt;
Variable P_dept := For d := Dept Do `-&amp;gt;`(Support_response -&amp;gt; answers -&amp;gt; category -&amp;gt; probabilities, d)&lt;br /&gt;
Variable Expected_cost := Sum(P_dept * Category_cost, Dept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Routing with a review band:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Local p := Support_response -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul;&lt;br /&gt;
If p &amp;gt;= 0.7 Then &#039;Refund queue&#039; Else If p &amp;lt;= 0.3 Then &#039;Normal queue&#039; Else &#039;Human review&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Treating the answer as uncertainty in a probabilistic model:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Bernoulli(Support_response -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul)&lt;br /&gt;
ChanceDist(P_dept, Dept)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Many texts at once ==&lt;br /&gt;
&lt;br /&gt;
The usual use is a whole list of texts: a column of comments, a set of reports. Put the texts in an index, or in an array over an index, and pass the array where the library expects one text. Analytica&#039;s array abstraction then makes one request, and one call, per text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Index Ticket := 1..50&lt;br /&gt;
Variable Ticket_text := … { 50 messages, indexed by Ticket }&lt;br /&gt;
Variable Ticket_requests := JevRequest(Ticket_text, Support_questions)&lt;br /&gt;
Variable Ticket_responses := Ticket_requests -&amp;gt; JevCall(allowIncomplete: True)&lt;br /&gt;
Variable P_refund := Ticket_responses -&amp;gt; answers -&amp;gt; refund -&amp;gt; noul        { indexed by Ticket }&lt;br /&gt;
Variable Ticket_category := Ticket_responses -&amp;gt; answers -&amp;gt; category -&amp;gt; choice&lt;br /&gt;
Variable Total_cost := Sum(Ticket_responses -&amp;gt; cost, Ticket)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Points to watch with arrays:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Every element is a separate, billed call&#039;&#039;&#039;, and the calls are made one after another. Fifty texts means fifty calls. Recomputing &amp;lt;code&amp;gt;Ticket_responses&amp;lt;/code&amp;gt; makes all of them again, so keep it upstream of anything you edit often. To freeze a finished batch, copy its results into a table or save them to a file.&lt;br /&gt;
* &#039;&#039;&#039;Use &amp;lt;code&amp;gt;allowIncomplete: True&amp;lt;/code&amp;gt; for batches.&#039;&#039;&#039; By default, a question Jev declines to answer raises an error ([[#When things go wrong|When things go wrong]]). In an array, one such error stops the whole evaluation, and all the calls already made are still billed. With &amp;lt;code&amp;gt;allowIncomplete: True&amp;lt;/code&amp;gt;, that text&#039;s response just lists the question in &amp;lt;code&amp;gt;unanswered&amp;lt;/code&amp;gt;, and its fields are Null.&lt;br /&gt;
* &#039;&#039;&#039;Build &amp;lt;code&amp;gt;JevState&amp;lt;/code&amp;gt;s one at a time.&#039;&#039;&#039; Array abstraction works for a text state, but &amp;lt;code&amp;gt;JevState(...)&amp;lt;/code&amp;gt; given arrays builds a &#039;&#039;single&#039;&#039; state containing the whole arrays. To send several facts about each item, loop:&amp;lt;pre&amp;gt;Variable Ticket_state := For t := Ticket Do JevState(message: Ticket_text[Ticket = t], customer_tier: Tier[Ticket = t])&amp;lt;/pre&amp;gt; Check one element with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Ticket_requests[Ticket = 1] -&amp;gt; JevJSON()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; before calling.&lt;br /&gt;
* &#039;&#039;&#039;To get probabilities over an array of responses, use your own index.&#039;&#039;&#039; Pass the index with the outcome names, as &amp;lt;code&amp;gt;P_dept&amp;lt;/code&amp;gt; does above, rather than &amp;lt;code&amp;gt;JevProbabilityArray&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;JevProbabilityArray&amp;lt;/code&amp;gt; builds a separate local &amp;lt;code&amp;gt;Outcome&amp;lt;/code&amp;gt; index for each answer, so it fails when it is given an array of answers. For a Score, convert the level number to text, as here with &amp;lt;code&amp;gt;Index Level := 0..2&amp;lt;/code&amp;gt;:&amp;lt;pre&amp;gt;For k := Level Do `-&amp;gt;`(r -&amp;gt; answers -&amp;gt; urgency -&amp;gt; probabilities, k &amp;amp; &#039;&#039;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== When things go wrong ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; raises an evaluation error rather than returning a made-up answer:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Message begins !! Meaning !! What to do&lt;br /&gt;
|-&lt;br /&gt;
| an error about the secret &amp;lt;code&amp;gt;JEV_API_KEY&amp;lt;/code&amp;gt; || the environment variable isn&#039;t visible to Analytica || set it, then restart Analytica ([[#Setup|Setup]])&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Jev connection failed:&amp;lt;/code&amp;gt; || no network connection, or the request timed out || check the connection, or allow more time: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevCall(120000)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (milliseconds; the default is 60000)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Jev HTTP 401&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;403&amp;lt;/code&amp;gt; || the key was rejected || check the key&#039;s value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Jev HTTP&amp;lt;/code&amp;gt; with another code || the gateway or service refused the request || the message includes the service&#039;s explanation&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;Jev returned no usable answer for question(s): urgency (refusal)&amp;lt;/code&amp;gt; || Jev declined to answer that question, or left it out || reword the question, or pass &amp;lt;code&amp;gt;allowIncomplete: True&amp;lt;/code&amp;gt; to keep the other answers; the call was still billed&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; never retries automatically, because a retry could be billed twice. A timeout doesn&#039;t prove the service didn&#039;t process (and charge for) the request.&lt;br /&gt;
&lt;br /&gt;
== Checking a request before sending it (optional) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevJSON()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; returns the exact JSON &#039;&#039;&#039;text&#039;&#039;&#039; that &amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; would send. It doesn&#039;t contact Vercel, and it doesn&#039;t need the API key, so you can use it before setup is finished, or to check a large batch&#039;s requests without paying for them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevRequest(&#039;Please refund the duplicate charge.&#039;, JevQuestions(refund: JevNoul(&#039;Is a refund requested?&#039;))) -&amp;gt; JevJSON()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is the text&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{&amp;quot;state&amp;quot;: &amp;quot;Please refund the duplicate charge.&amp;quot;, &amp;quot;model&amp;quot;: &amp;quot;typesafe-ai\/jev&amp;quot;, &amp;quot;questions&amp;quot;: {&amp;quot;refund&amp;quot;: {&amp;quot;instructions&amp;quot;: &amp;quot;Is a refund requested?&amp;quot;, &amp;quot;criteria&amp;quot;: null, &amp;quot;type&amp;quot;: &amp;quot;noul&amp;quot;}}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(The &amp;lt;code&amp;gt;\/&amp;lt;/code&amp;gt; is JSON&#039;s standard escape for &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;.) You never need &amp;lt;code&amp;gt;JevJSON&amp;lt;/code&amp;gt; to make a call; &amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; uses it internally.&lt;br /&gt;
&lt;br /&gt;
== Good practice and caveats ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Write questions a careful person could answer from the text alone.&#039;&#039;&#039; Make choice options distinct, list score levels in order, and say whether implied evidence counts or only explicit statements do. The text you send is the only information Jev has.&lt;br /&gt;
* &#039;&#039;&#039;Validate before relying on it.&#039;&#039;&#039; Run a few dozen cases where you know the right answer, and compare. The probabilities are designed to be calibrated, but how well they are calibrated for &#039;&#039;your&#039;&#039; texts and questions is something to measure.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;confidence&amp;lt;/code&amp;gt; is not a probability of being right.&#039;&#039;&#039; It is computed from the answer&#039;s own probabilities. It is 1 when all the probability is on one option or level, and 0 when the probability is spread evenly. It is handy for thresholds. Noul answers have none, because the probability itself says how sure Jev is.&lt;br /&gt;
* &#039;&#039;&#039;Answers are inputs, not facts.&#039;&#039;&#039; Jev reads only what you send. Treat its answers like an expert&#039;s judgment: useful, but worth checking where the stakes are high.&lt;br /&gt;
* &#039;&#039;&#039;Privacy.&#039;&#039;&#039; Everything in the state is sent to Vercel and TypeSafe. The Secret protects your key, not your data. Don&#039;t send information you aren&#039;t permitted to share.&lt;br /&gt;
* &#039;&#039;&#039;Reproducibility.&#039;&#039;&#039; The default model &amp;lt;code&amp;gt;&#039;jev-latest&#039;&amp;lt;/code&amp;gt; can change as TypeSafe updates it. For results that must be reproducible, name a version as the third argument, for example &amp;lt;code&amp;gt;JevRequest(text, questions, &#039;jev-1.14.0&#039;)&amp;lt;/code&amp;gt;, if that version is available.&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;atom&amp;lt;/code&amp;gt; means the parameter takes a single value. If you pass an array, the function is applied to each element (array abstraction).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;JevJSON&amp;lt;/code&amp;gt; are &#039;&#039;methods&#039;&#039; of a request: write &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevCall()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, not &amp;lt;code&amp;gt;JevCall(request)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Building a request ===&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevRequest(state, questions, model: &#039;jev-latest&#039;)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt;: the text to assess, or a structured value such as a &amp;lt;code&amp;gt;JevState&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;questions&amp;lt;/code&amp;gt;: a &amp;lt;code&amp;gt;JevQuestions&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;model&amp;lt;/code&amp;gt;: a Jev model name. &amp;lt;code&amp;gt;&#039;jev-latest&#039;&amp;lt;/code&amp;gt; is sent as &amp;lt;code&amp;gt;typesafe-ai/jev&amp;lt;/code&amp;gt;, any other name &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; is sent as &amp;lt;code&amp;gt;typesafe-ai/x&amp;lt;/code&amp;gt;, and a name containing &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; is sent unchanged.&lt;br /&gt;
&lt;br /&gt;
Building a request makes no call.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevState(...)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Named facts sent to Jev together, as a JSON object. Use it when the evidence isn&#039;t one block of text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;JevState(message: &#039;Please refund the duplicate charge.&#039;, amount: 49, currency: &#039;USD&#039;, prior_complaints: 2)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A field can hold a list. As a result, &amp;lt;code&amp;gt;JevState&amp;lt;/code&amp;gt; does not array-abstract: build one state per item with &amp;lt;code&amp;gt;For&amp;lt;/code&amp;gt; ([[#Many texts at once|Many texts at once]]).&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevQuestions(name1: question1, name2: question2, ...)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
The questions to ask, each under a name you choose. Each question must be a &amp;lt;code&amp;gt;JevNoul&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;JevChoice&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;JevScore&amp;lt;/code&amp;gt;, and there must be at least one.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevNoul(instructions, criteria)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
A yes/no question. &amp;lt;code&amp;gt;criteria&amp;lt;/code&amp;gt; is optional: &amp;lt;code&amp;gt;JevNoulCriteria(yes_description, no_description)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevChoice(instructions, criteria)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
A category question. &amp;lt;code&amp;gt;criteria&amp;lt;/code&amp;gt; is a &amp;lt;code&amp;gt;JevChoiceCriteria&amp;lt;/code&amp;gt; with 2–255 options.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevChoiceCriteria(option1: description1, ...)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
The options for a Choice. Their order doesn&#039;t matter. A description can be Null, in which case the option name alone defines it. For option names that aren&#039;t identifiers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;ParseJSON(&#039;{&amp;quot;Billing and refunds&amp;quot;: &amp;quot;Charges, invoices, refunds&amp;quot;, &amp;quot;Something else&amp;quot;: null}&#039;, JevChoiceCriteria)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevScore(instructions, levels)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
An ordered-scale question. &amp;lt;code&amp;gt;levels&amp;lt;/code&amp;gt; is a list of 2–10 descriptions, lowest first. They are numbered from 0.&lt;br /&gt;
&lt;br /&gt;
An &amp;lt;code&amp;gt;instructions&amp;lt;/code&amp;gt; argument, or any description, can also be a structured value, for example &amp;lt;code&amp;gt;_Struct(task: &#039;…&#039;, examples: &#039;…&#039;)&amp;lt;/code&amp;gt;. It is then sent as JSON.&lt;br /&gt;
&lt;br /&gt;
=== Making the call ===&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevCall(timeout_ms: 60000, allowIncomplete: False)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Sends the request and returns a &amp;lt;code&amp;gt;JevResponse&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;timeout_ms&amp;lt;/code&amp;gt; is in milliseconds. It applies to connecting, sending and receiving.&lt;br /&gt;
* With &amp;lt;code&amp;gt;allowIncomplete: True&amp;lt;/code&amp;gt;, a refused or missing answer is reported in &amp;lt;code&amp;gt;unanswered&amp;lt;/code&amp;gt; instead of raising an error.&lt;br /&gt;
&lt;br /&gt;
Every evaluation is a billed call.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;request -&amp;gt; JevJSON()&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Returns the request&#039;s JSON text without sending it ([[#Checking a request before sending it (optional)|Checking a request before sending it (optional)]]).&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevParseResponse(body, questions, allowIncomplete: False)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Converts saved response text, for example a body saved to a file, into a &amp;lt;code&amp;gt;JevResponse&amp;lt;/code&amp;gt; without any network access. If you pass &amp;lt;code&amp;gt;questions&amp;lt;/code&amp;gt;, it checks that each question was answered, as &amp;lt;code&amp;gt;JevCall&amp;lt;/code&amp;gt; does.&lt;br /&gt;
&lt;br /&gt;
=== Reading the response ===&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevResponse&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Contents&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;answers&amp;lt;/code&amp;gt; || one &amp;lt;code&amp;gt;JevAnswer&amp;lt;/code&amp;gt; per question, under the names you gave the questions&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;cost&amp;lt;/code&amp;gt; || the charge for this call in US dollars, as reported by the gateway (Null if it wasn&#039;t reported)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;usage&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;input_tokens&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;output_tokens&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unanswered&amp;lt;/code&amp;gt; || names of questions with no usable answer: empty normally, filled only with &amp;lt;code&amp;gt;allowIncomplete: True&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;model&amp;lt;/code&amp;gt; || the model that answered, for example &amp;lt;code&amp;gt;typesafe-ai/jev&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;provider_metadata&amp;lt;/code&amp;gt; || other information from the gateway, kept as is&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevAnswer&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Noul !! Choice !! Score&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&#039;noul&#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&#039;choice&#039;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&#039;score&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;noul&amp;lt;/code&amp;gt; || probability of yes ||  || &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;choice&amp;lt;/code&amp;gt; ||  || most likely option || &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt; ||  ||  || expected level (0 to top level)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;probabilities&amp;lt;/code&amp;gt; ||  || by option name || by level, &amp;lt;code&amp;gt;&#039;0&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;1&#039;&amp;lt;/code&amp;gt;, …&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;legend&amp;lt;/code&amp;gt; ||  ||  || level descriptions, by &amp;lt;code&amp;gt;&#039;0&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;1&#039;&amp;lt;/code&amp;gt;, …&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;confidence&amp;lt;/code&amp;gt; ||  || 0–1 || 0–1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Fields that don&#039;t apply are Null. A question Jev declined has &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;&#039;refusal&#039;&amp;lt;/code&amp;gt; and no results.&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;JevProbabilityArray(answer)&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
Returns the answer&#039;s probabilities as an array over a local index &amp;lt;code&amp;gt;Outcome&amp;lt;/code&amp;gt; ([[#Using the answers in a model|Using the answers in a model]]). It works on one answer at a time, and raises an error for a refusal.&lt;br /&gt;
&lt;br /&gt;
== The test model ==&lt;br /&gt;
&lt;br /&gt;
[[media:Test of Jev library.ana|Test of Jev library.ana]] contains the library&#039;s regression tests in its &#039;&#039;QA Testing&#039;&#039; module:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;QA Offline results&#039;&#039;&#039;: 53 cases covering the constructors, the JSON sent, response parsing (including refusals, missing answers and malformed responses), cost, probability arrays and input checks. They make no calls and need no key.&lt;br /&gt;
* &#039;&#039;&#039;QA Live result&#039;&#039;&#039;: one real call with a Noul, a Choice and a Score question. It checks that the answers have the right types and ranges and that the probabilities sum to 1. It costs a fraction of a cent each time it is recomputed.&lt;br /&gt;
* &#039;&#039;&#039;QA Summary&#039;&#039;&#039;: both together. Viewing it can trigger the live call if that result isn&#039;t already cached.&lt;br /&gt;
&lt;br /&gt;
== Example models ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;[[Jev library/Dishwasher warranty reliability|Dishwasher warranty reliability]]&#039;&#039;&#039;. A fictional appliance maker uses Jev to read 477 technicians&#039; warranty service notes. From them it builds failure rates by part and age, a warranty reserve, a spare-parts plan and a part-upgrade decision. It shows batch calls, counting with probabilities, checking Jev against a reviewed sample, and a pitfall with rare events. It runs without an API key, using saved answers.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Build_model_py.txt&amp;diff=64727</id>
		<title>File:Build model py.txt</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Build_model_py.txt&amp;diff=64727"/>
		<updated>2026-10-26T22:52:56Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Python script build_model.py for the Jev library/Dishwasher warranty reliability example (stored as .txt because the wiki does not accept .py files; save it as build_model.py). It wrote the first version of the model, which was then edited in Analytica.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Python script build_model.py for the [[Jev library/Dishwasher warranty reliability]] example (stored as .txt because the wiki does not accept .py files; save it as build_model.py). It wrote the first version of the model, which was then edited in Analytica.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Make_service_calls_py.txt&amp;diff=64726</id>
		<title>File:Make service calls py.txt</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Make_service_calls_py.txt&amp;diff=64726"/>
		<updated>2026-10-26T22:52:51Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Python script make_service_calls.py for the Jev library/Dishwasher warranty reliability example (stored as .txt because the wiki does not accept .py files; save it as make_service_calls.py). Generates the fictional service-call data, installs and answer key.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Python script make_service_calls.py for the [[Jev library/Dishwasher warranty reliability]] example (stored as .txt because the wiki does not accept .py files; save it as make_service_calls.py). Generates the fictional service-call data, installs and answer key.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Saved_jev_raw.json&amp;diff=64725</id>
		<title>File:Saved jev raw.json</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Saved_jev_raw.json&amp;diff=64725"/>
		<updated>2026-10-26T22:52:19Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: For the Jev library/Dishwasher warranty reliability example: the full Jev responses for the 477 service calls, as returned by the API.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
For the [[Jev library/Dishwasher warranty reliability]] example: the full Jev responses for the 477 service calls, as returned by the API.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Export_jev_answers.txt&amp;diff=64724</id>
		<title>File:Export jev answers.txt</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Export_jev_answers.txt&amp;diff=64724"/>
		<updated>2026-10-26T22:52:14Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: For the Jev library/Dishwasher warranty reliability example: the Analytica expressions that save live Jev answers to saved_jev_answers.csv and saved_jev_raw.json.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
For the [[Jev library/Dishwasher warranty reliability]] example: the Analytica expressions that save live Jev answers to saved_jev_answers.csv and saved_jev_raw.json.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Test_of_Jev_library.ana&amp;diff=64723</id>
		<title>File:Test of Jev library.ana</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Test_of_Jev_library.ana&amp;diff=64723"/>
		<updated>2026-10-26T22:51:34Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Regression tests for the Jev library: 53 offline cases and one live call. Keep it in the same folder as Jev library.ana.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Regression tests for the [[Jev library]]: 53 offline cases and one live call. Keep it in the same folder as Jev library.ana.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Saved_jev_answers.csv&amp;diff=64722</id>
		<title>File:Saved jev answers.csv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Saved_jev_answers.csv&amp;diff=64722"/>
		<updated>2026-10-26T22:50:15Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Data file for the Jev library/Dishwasher warranty reliability example: Jev&amp;#039;s answers for each service call, as embedded in the model.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Data file for the [[Jev library/Dishwasher warranty reliability]] example: Jev&#039;s answers for each service call, as embedded in the model.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Answer_key.csv&amp;diff=64721</id>
		<title>File:Answer key.csv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Answer_key.csv&amp;diff=64721"/>
		<updated>2026-10-26T22:50:09Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Data file for the Jev library/Dishwasher warranty reliability example: the simulated true cause of every service call, for checking Jev. The model does not use it.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Data file for the [[Jev library/Dishwasher warranty reliability]] example: the simulated true cause of every service call, for checking Jev. The model does not use it.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Service_calls.csv&amp;diff=64720</id>
		<title>File:Service calls.csv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Service_calls.csv&amp;diff=64720"/>
		<updated>2026-10-26T22:50:03Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Data file for the Jev library/Dishwasher warranty reliability example: the 477 warranty service calls with technician notes (fictional data).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Data file for the [[Jev library/Dishwasher warranty reliability]] example: the 477 warranty service calls with technician notes (fictional data).&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Dishwasher_warranty_reliability.ana&amp;diff=64719</id>
		<title>File:Dishwasher warranty reliability.ana</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Dishwasher_warranty_reliability.ana&amp;diff=64719"/>
		<updated>2026-10-26T22:49:42Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Example model for the Jev library: see Jev library/Dishwasher warranty reliability. Fictional company and data. Needs Jev library.ana in the same folder.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Example model for the [[Jev library]]: see [[Jev library/Dishwasher warranty reliability]]. Fictional company and data. Needs Jev library.ana in the same folder.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Jev_library.ana&amp;diff=64718</id>
		<title>File:Jev library.ana</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Jev_library.ana&amp;diff=64718"/>
		<updated>2026-10-26T22:49:31Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: The Jev library for Analytica 7.2 or later: ask TypeSafe&amp;#039;s Jev model questions about text and get back probabilities. See Jev library.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
The Jev library for Analytica 7.2 or later: ask TypeSafe&#039;s Jev model questions about text and get back probabilities. See [[Jev library]].&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Installs_by_month.csv&amp;diff=64717</id>
		<title>File:Installs by month.csv</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Installs_by_month.csv&amp;diff=64717"/>
		<updated>2026-10-26T22:48:51Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Data file for the Jev library/Dishwasher warranty reliability example: units installed each month (fictional data).&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Data file for the [[Jev library/Dishwasher warranty reliability]] example: units installed each month (fictional data).&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Jev_library&amp;diff=64716</id>
		<title>Jev library</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Jev_library&amp;diff=64716"/>
		<updated>2026-10-26T22:37:07Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Created page with &amp;quot;category:Function libraries category:Integration Functions‏‎  &amp;#039;&amp;#039;Requires the {{Analytica Developer}} edition or better&amp;#039;&amp;#039;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Function libraries]]&lt;br /&gt;
[[category:Integration Functions‏‎]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Requires the {{Analytica Developer}} edition or better&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=64682</id>
		<title>What&#039;s new in Analytica 7.2?</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=What%27s_new_in_Analytica_7.2%3F&amp;diff=64682"/>
		<updated>2026-10-22T23:28:35Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: ER 22563 - new «sideEffects» param to Evaluate(...)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!--Analytica 7.2 is currently under development, and will be a future release of Analytica. The current official release is [[Analytica 7.1]]. This page is under construction, and will list enhancements that are new to Analytica or ADE 7.2.--&amp;gt;&lt;br /&gt;
Analytica 7.2 is the next release of Analytica and is currently in [[Beta Tester Page|beta testing]]. The current official release is [[Analytica 7.1]]. This page lists enhancements that are now to Analytica or ADE 7.2. To use Analytica 7.2 beta, please visit the [[Beta Tester Page]].&lt;br /&gt;
&lt;br /&gt;
== Secrets ==&lt;br /&gt;
The [[Secret]] object class is a first-class home for the credentials your model uses: database passwords, API keys, bearer tokens.&lt;br /&gt;
&lt;br /&gt;
A Secret keeps the credential itself out of the language entirely. The Secret&#039;s identifier evaluates to a &#039;&#039;placeholder&#039;&#039; text, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{secret:AcmeKey}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which you compose into a connection string or URL like any other text:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;DbQuery(f&amp;quot;DSN=AcmeWarehouse;UID=svc_reports;PWD={AcmeKey}&amp;quot;, sql)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The real value is substituted only inside allow-listed built-in functions ([[DbQuery]], [[ReadFromUrl|ReadFromURL]], [[OAuth2Authorize]], and the other database functions), in compiled code, just before the text goes to ODBC or to the web -- and only when the call&#039;s destination matches the Secret&#039;s declared policy. Definitions stay fully readable, with no cloaking or locked modules -- yet the credential never appears in any result, attribute, error message, or saved file, and model code cannot exfiltrate it (a &amp;lt;code&amp;gt;WriteTextFile&amp;lt;/code&amp;gt; or a &amp;lt;code&amp;gt;ReadFromURL&amp;lt;/code&amp;gt; aimed at some other server never sees the real value).&lt;br /&gt;
&lt;br /&gt;
Create one with &#039;&#039;&#039;[[Object menu]] / New / Secret&#039;&#039;&#039; (requires the Developer edition; models &#039;&#039;containing&#039;&#039; secrets load and run in every edition). See [[Secret]] for the full story, including an honest account of what each storage kind does and does not protect against.&lt;br /&gt;
&lt;br /&gt;
== Custom File Providers ==&lt;br /&gt;
(&#039;&#039;advanced, esoteric&#039;&#039;)&lt;br /&gt;
A [[Custom file system providers|file system provider]] makes a URI-style path, &amp;lt;code&amp;gt;«scheme»://«root»/«path»&amp;lt;/code&amp;gt;, for example &amp;lt;code&amp;gt;&amp;quot;repo://Sales/Q3.csv&amp;quot;&amp;lt;/code&amp;gt;, work anywhere the Analytica engine accepts a file name. The file provider can be a source other than a file system (for example, a git repo, cloud storage, a web-based document management system, etc.), but from Analytica and within your models, it can be used anywhere a file path would be used, as if it were a file. You have to configure the available file providers, and you can implement your own (e.g., to wrap an existing service) according to a document [[Custom file system providers/API spec|API specification]].&lt;br /&gt;
&lt;br /&gt;
== GUI ==&lt;br /&gt;
* The [[Object menu]] has a new submenu named &#039;&#039;&#039;New&#039;&#039;&#039;, which you can use to add a new object of any class. This makes it easier and more convenient to add more esoteric class instances that aren&#039;t on the toolbar (like Frame node, Struct, Callable, Secret, etc.) Plus it is easier to add a new node without using a mouse.&lt;br /&gt;
** &#039;&#039;&#039;[[Object menu]] / New / Picture&#039;&#039;&#039; prompts for an image filename. (similar to &#039;&#039;&#039;[File menu] / Import...&#039;&#039;&#039;.&lt;br /&gt;
* Enhancements to the [[Outline window]]&lt;br /&gt;
** There are now hover icons on line items.&lt;br /&gt;
** You can Alt+Click on an item in the Outline to insert its identifier while editing an expression elsewhere.&lt;br /&gt;
** The &#039;&#039;&#039;Module only&#039;&#039;&#039; checkbox has been removed from the header, and a new icon button added to each module line item to show or hide non-module children, allowing this to be controlled at the level of each module or library.&lt;br /&gt;
** Key strokes now have an effect. Up/Down arrows move between line items. Right/Left arrows from a module expand or collapse that item. Shift+Right/Left from a module show or hide non-module children. Home/End keys jump to the begging or end. And typing characters incrementally search among the items visible in the window.&lt;br /&gt;
* Input and Output popups are now present on Module nodes in a diagram. Input popups appear when you click to the immediately left of a node, and output popups appear when you click to the immediate right of a node. These have long existed for variables enabling you to quickly navigate dependencies, but for a Module node the situation is much more complex. A dependency exists from Module A to Module B when there exists a dependency between variables &amp;lt;code&amp;gt;X&amp;amp;rarr;Y&amp;lt;/code&amp;gt; where X is within Module A and Y is within Module B. With modules, there can be a very large number of such dependencies, so the new module input/output popups are organized hierarchically with expanding outline views.&lt;br /&gt;
* There is a new [[Publish To Cloud dialog]]. It handles both ACP3 (the current version at https://acp.analytica.com at the time of this release) as well as ACP4 (coming soon).&lt;br /&gt;
* A user input node with a &#039;&#039;&#039;[List]&#039;&#039;&#039; control pops up a new list-editor dialog, similar to the one in ACP. Previously this opened the Object Window where you would edit the list. The new dialog focuses solely on the list without all the other attributes.&lt;br /&gt;
* Added Drag-and-drop of selected text within and between textual attribute values. Formerly required Cut-Paste, but differs in that Drag-and-drop doesn&#039;t alter the clipboard.&lt;br /&gt;
* The [[Preferences dialog]] exposes some new preference settings:&lt;br /&gt;
** The method used when generating identifiers from titles. (Which Assista will also use when naming objects)&lt;br /&gt;
** Whether display-only arrows should be show as dashed.&lt;br /&gt;
** The time zone used for new date-time values (such as when parsing dates).&lt;br /&gt;
&lt;br /&gt;
== Built-in functions or structs ==&lt;br /&gt;
* The [[Functions To Read Excel Worksheets|Spreadsheet functions]] now work directly with live Google sheets.&lt;br /&gt;
* A new option to &amp;lt;code&amp;gt;[[SpreadsheetInfo]]( wb, &#039;Backend&#039;)&amp;lt;/code&amp;gt;, to programatically detect which backend the workbook uses (&amp;lt;code&amp;gt;&#039;LibXl&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;Excel&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;GoogleSheets&#039;&amp;lt;/code&amp;gt;). &lt;br /&gt;
* [[FileExists]]( filepath&#039;&#039;, files, folders&#039;&#039; ) tests whether a file or folder exists, without the [[FileSystemListing]] idiom that this used to require. Requires {{Analytica Developer}} or better.&lt;br /&gt;
* New parameters, «map» and «includeNull» added to [[Flatten]] (...). Makes it easy and efficient to concatenate a collection of lists when the lists are behind [[references]] or in [[Struct]] members.&lt;br /&gt;
* [[SortIndex]], [[Sort]] and [[Rank]] can now accept a «lessThat» function for custom comparisons. See [[Using an ordering function when sorting]].&lt;br /&gt;
* A new optional «timeZone» parameter added to [[ParseDate]], [[ParseCSV]], [[NumberToText]], and [[Today]]. Controls which time zone a newly created date-time number (such as when parsed) is created in. [[ParseDate]] and [[ParseCSV]] now recognize ISO 8601 and RFC 3339 date-time format; These are used by many web services, and may include an explicit time zone, which gets converted into the active or specified time zone. &lt;br /&gt;
* Added new built-in functions for [[Encrypting and decrypting|encryption and decryption]] using strong, standard authenticated encryption. (requires [[Analytica Developer]] edition or better).&lt;br /&gt;
* (Esoteric) A new parameter, «sensitive», to [[AskMsgText]] and [[MsgBox]]. Used with the new &amp;lt;code&amp;gt;/AutomationTrace&amp;lt;/code&amp;gt; [[Analytica Command Line|command line]] option to prevent sensitive info (like a credential or API key) from being logged.&lt;br /&gt;
* (&#039;&#039;Experimental&#039;&#039;) New [[Timer]] struct for scheduling an evaluation.&lt;br /&gt;
* New options for [[GetProcessInfo]] to detect non-Windows host version (e.g., when running on Linux), as well as installed fonts.&lt;br /&gt;
* (Esoteric) A new Struct, [[ArrowDependencies]], returns detailed information on dependencies into, or out of, nodes. Most useful for finding all the dependencies between two modules (i.e., which variables deep inside are responsible for dependencies between them). Introduce to enable Assista to better answer questions about module dependencies.&lt;br /&gt;
* The [[UncertainLMH]] distribution now allows «xLow»=«lb» or «xHigh»=«ub». This means that 10% (or more generally «pLow») of the probability sits at the «lb» or «ub» value creating a discontinuity in the CDF (an infinite spike in the PDF) at that value.&lt;br /&gt;
* Added an «asIndex» parameter to [[HandleFromIdentifier]]. The same already existed on [[Handle]]. Used to disambiguate in the case of a self-indexed array-valued variable. &lt;br /&gt;
* When &amp;lt;code&amp;gt;[[Area]](y,x)&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;[[Integrate]](y,x)&amp;lt;/code&amp;gt; appear in a [[DefineOptimization]] formulation where &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; depends on decision variables, the analyzer recognizes this as a linear or quadratic relationship when deciding whether the problem is an «LP», «QP» or «NLP».&lt;br /&gt;
* A new «sideEffects» parameter to [[Evaluate]] can be specified to disallow side-effects during the evaluation, even from a button or other context that would allow side-effects, or to disallow changes that a user would not be allowed to do from browse mode. Intended for use from MCP tools.&lt;br /&gt;
&lt;br /&gt;
== Dates and time zones ==&lt;br /&gt;
* ISO 8601 / RFC 3339 date-times with a UTC offset, such as &amp;lt;code&amp;gt;2025-08-25T00:07:05.000+0000&amp;lt;/code&amp;gt; (the form most web APIs return), are now parsed by [[ParseDate]], [[ParseCSV]], table cells and definitions, and can be written as literals inside expressions, e.g., &amp;lt;code&amp;gt;Sequence(2025-08-25T00:00:00, 2025-08-27T00:00:00, dateUnit: &#039;D&#039;)&amp;lt;/code&amp;gt;. See [[Date and Time Values]].&lt;br /&gt;
* A new model preference, &#039;&#039;&#039;Time zone&#039;&#039;&#039; ([[Preferences dialog]]; system variable [[System variables#Sys_TimeZone|Sys_TimeZone]], default &amp;lt;code&amp;gt;&#039;Local&#039;&amp;lt;/code&amp;gt;), says which time zone the model&#039;s date-time values are in. Text with an explicit offset is converted into it, and [[Today]]() reports the time in it.&lt;br /&gt;
* A new «timeZone» parameter on [[ParseDate]], [[ParseCSV]], [[Today]] and [[NumberToText]]: &amp;lt;code&amp;gt;&#039;Model&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;Local&#039;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&#039;UTC&#039;&amp;lt;/code&amp;gt; or a fixed offset such as &amp;lt;code&amp;gt;&#039;+05:30&#039;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* A new date format, &amp;lt;code&amp;gt;&#039;ISO8601&#039;&amp;lt;/code&amp;gt; (equivalent to &amp;lt;code&amp;gt;yyyy-MM-ddTHH:mm:ss.sssZ&amp;lt;/code&amp;gt;), and date template codes &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ZZ&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ZZZ&amp;lt;/code&amp;gt; for the UTC offset, so timestamps can be sent back to an API: &amp;lt;code&amp;gt;NumberToText(x, dateFormat: &#039;ISO8601&#039;, timeZone: &#039;UTC&#039;)&amp;lt;/code&amp;gt;. See [[Date formats]].&lt;br /&gt;
* &#039;&#039;&#039;Behavior change&#039;&#039;&#039;: a trailing &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; on a parsed date-time, e.g. &amp;lt;code&amp;gt;ParseDate(&#039;2025-08-25T00:07:05Z&#039;)&amp;lt;/code&amp;gt;, was accepted but ignored in 7.0 and 7.1. It now means UTC, so such values shift by your zone&#039;s offset from UTC. A literal &amp;lt;code&amp;gt;Z&amp;lt;/code&amp;gt; in a custom date template must now be quoted (&amp;lt;code&amp;gt;&#039;Z&#039;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== New command line options ==&lt;br /&gt;
See [[Analytica Command Line]].&lt;br /&gt;
*; &amp;lt;code&amp;gt;/evalThenExit:«expression»&amp;lt;/code&amp;gt;: Like &amp;lt;code&amp;gt;/eval:&amp;lt;/code&amp;gt;, but Analytica exits as soon as «expression» has finished, without asking whether to save changes. It replaces the &amp;lt;code&amp;gt;/eval:&amp;quot;«expression»;EvaluateScript(&#039;Bye -&#039;)&amp;quot;&amp;lt;/code&amp;gt; idiom that a [[Running a model in a command line workflow|command line workflow]] used to need, and that was easy to forget.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/lib:«YourLib.ana»&amp;lt;/code&amp;gt;: Loads an Analytica library into [[SysLib_Customizations]], which exists concurrently with your model (in a different [[Namespace]]). It survives across model closures, so it can appear as new built-in functionality. Useful for [[MCP server in Analytica|MCP Servers]], QA testing, benchmarking, [[Running a model in a command line workflow|batch processing]], GUI extensions, General (model-independent) [[Assista - Analytica AI Assistant/Custom user skills for Assista|Custom Assista skill libraries]], etc.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/AutomationTrace:«file»&amp;lt;/code&amp;gt;: Run in an [[Analytica_Command_Line/Automation|automation]] mode so that blocking modal dialogs don&#039;t appear waiting for a user input.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/WindowXY&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/WindowSize&amp;lt;/code&amp;gt;: Explicit control over the initial location of the Analytica application window on your screen.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/stores:«path to FileProvider.config»&amp;lt;/code&amp;gt;: Location of a [[Custom file system providers|Custom file system provider]] configuration file.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/remote-debugging-port:«port»&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/remote-allow-origins:«origins»&amp;lt;/code&amp;gt;: Hooks used by Lumina for Assista benchmarking and AI-assisted debugging during GUI development.&lt;br /&gt;
&lt;br /&gt;
*; &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;/Autosave=1&amp;lt;/code&amp;gt;: Turns the &#039;&#039;Maintain recovery info&#039;&#039; preference off or on for that run only, without changing the stored preference (and &amp;lt;code&amp;gt;/Automation&amp;lt;/code&amp;gt; now implies &amp;lt;code&amp;gt;/Autosave=0&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== AI Integration ==&lt;br /&gt;
* You can now use an [[MCP server in Analytica|MCP server implemented in desktop Analytica]] from Claude.ai, Claude CoWork and other AI clients that are running in the Cloud (when used in conjunction with a tunnel such as &amp;lt;code&amp;gt;cloudflared&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ngrok&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Evaluation engine ==&lt;br /&gt;
* [[Null]] can be specified to a repeated index parameter, which is a way to specify the implicit dimension (aka the null index). All such repeated index parameters for all built-in functions handle this. This enables &amp;lt;code&amp;gt;...[[IndexesOf]](x)&amp;lt;/code&amp;gt; to work when &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; has an implicit dimension without any extra surrounding code. &lt;br /&gt;
* Introduced a new function parameter qualifier, &amp;lt;code&amp;gt;nullIndexOk&amp;lt;/code&amp;gt;, for a non-repeated index parameter. When this is specified, the caller can specify [[Null]] for the index with the meaning that the function should operate over the implicit dimension. &lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
* The limit on the maximum number of objects (which was 65500) has been removed. There is no longer any fixed limit.&lt;br /&gt;
* Dynamic calculations now use new attributes, &amp;lt;code&amp;gt;dynValue&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dynProbValue&amp;lt;/code&amp;gt; for partial results, and the usual &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;probValue&amp;lt;/code&amp;gt; only for fully computed results. Previously partial results during a dynamic calculation were tracked in &amp;lt;code&amp;gt;Value&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;probValue&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The identifier &amp;lt;code&amp;gt;Date&amp;lt;/code&amp;gt; is no longer a reserved identifier, and hence can be used as an identifier in your own models. The previous attribute, which encodes &amp;quot;Created date&amp;quot; for models, modules, and libraries, is still present as &amp;lt;code&amp;gt;SysLib_Internal::Date&amp;lt;/code&amp;gt;. Model file format is unchanged by this.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Evaluate&amp;diff=64681</id>
		<title>Evaluate</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Evaluate&amp;diff=64681"/>
		<updated>2026-10-22T23:02:26Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: ER 22563: new «sideEffects» parameter (Restricting side effects), gated to 7.2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Evaluation Functions]]&lt;br /&gt;
{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
Evaluate(t) is a powerful, but rarely needed function. If t is text, it parses it as an Analytica expression and evaluates it. If t is a handle to a variable, it evaluates and returns its value.&lt;br /&gt;
== Evaluate(t) ==&lt;br /&gt;
&lt;br /&gt;
If parameter «t» is a [[Text values|text value]],  [[Evaluate]](«t») tries to parse «t» as an Analytica [[expression]] (as in the [[definition]] of a Variable), evaluates it, and returns the resulting [[value]]. For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Evaluate(&#039;10 * 10&#039;) &amp;amp;rarr; 100&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If parameter «t» is a [[Handle]] to a variable, [[Evaluate]](«t») evaluates the variable and returns its value:&lt;br /&gt;
:&amp;lt;code&amp;gt;Variable A := 100&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]([[Handle]](A)) &amp;amp;rarr; 100&amp;lt;/code&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You can also use it to evaluate a function passed as an object or handle:&lt;br /&gt;
:&amp;lt;code&amp;gt;Function Add(a, b)  :=  a+b&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]([[Handle]](Add), 2, 10) &amp;amp;rarr; 12&amp;lt;/code&amp;gt;&lt;br /&gt;
This can be useful when you  want to define a function that takes a function as a parameter and applies the function in its body. &lt;br /&gt;
See [[#Using Evaluate on a Function]] below.&lt;br /&gt;
&lt;br /&gt;
== Handling errors ==&lt;br /&gt;
As of [[Analytica 6.6]], when an error occurs during the parsing or evaluation of «t» &#039;&#039;and&#039;&#039; the call to [[Evaluate]] appears within a [[Try]], evaluation transfers to the «catch» expression of the [[Try]] without presenting any error message dialog to the user. But this isn&#039;t true when the only surrounding (possibly nested) [[Try]]s have «errorNum» filters that do not match the occurring error.&lt;br /&gt;
&lt;br /&gt;
If error is not caught by a [[Try]], then a parsing error silently returns [[Null]] and an evaluation error appears to the user like any other evaluation error, typically terminating the computation.&lt;br /&gt;
&lt;br /&gt;
In [[Analytica 6.5]] and earlier, parsing errors are not caught by a surrounding [[Try]] -- they return Null as if there were no surrounding [[Try]].&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.1|2=|3=&lt;br /&gt;
=== Throwing parsing errors ===&lt;br /&gt;
&#039;&#039;New to [[Analytica 7.1]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Set the optional «throwParsingErrors» parameter to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to make [[Evaluate]] throw a parsing error instead of silently returning [[Null]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]( &#039;Sqrt((&#039; ) &amp;amp;rarr; [[Null]]&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]( &#039;Sqrt((&#039;, throwParsingErrors: true ) &amp;amp;rarr;&amp;lt;/code&amp;gt; &#039;&#039;reports the syntax error&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This is useful when the text being evaluated is typed by a user or constructed by code (such as an AI agent), where a silent [[Null]] hides the fact that the text did not parse. Since the error is thrown like any other evaluation error, a surrounding [[Try]] catches it.&lt;br /&gt;
&lt;br /&gt;
The parameter makes no difference when the call to [[Evaluate]] already appears within a [[Try]] that catches the error, since a parsing error is thrown in that case anyway (see above).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.1|2=|3=&lt;br /&gt;
== Capturing console output ==&lt;br /&gt;
&#039;&#039;New to [[Analytica 7.1]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To capture the text of everything printed to the console while «t» is evaluated, such as the output of any [[ConsolePrint]]() calls, pass a function that accepts one parameter to the optional «reportOutput» parameter. After the evaluation completes, your function is called with the captured console text:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] consoleText;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] result {{eq}} [[Evaluate]](&#039;ConsolePrint(2 + 2)&#039;, reportOutput: (Function(out) ::= (consoleText := out)));&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;code&amp;gt;result&amp;lt;/code&amp;gt; is the value of the evaluated expression (here &amp;lt;code&amp;gt;4&amp;lt;/code&amp;gt;), and &amp;lt;code&amp;gt;consoleText&amp;lt;/code&amp;gt; receives the captured console output (here the text &amp;lt;code&amp;gt;&amp;quot;4&amp;quot;&amp;lt;/code&amp;gt; followed by a newline). You can pass any function that accepts one parameter to «reportOutput» -- a local function as shown, or a handle to a user-defined function. Capturing the output does not prevent it from also appearing in the typescript window as it normally does.&lt;br /&gt;
&lt;br /&gt;
«reportOutput» receives only output produced &#039;&#039;during&#039;&#039; this evaluation. If «t» refers to a variable whose value is already cached, the variable is not recomputed, so it produces no console output and the reported text is empty.&lt;br /&gt;
&lt;br /&gt;
If the expression «t» returns multiple values using the &amp;lt;code&amp;gt;_(..)&amp;lt;/code&amp;gt; operator, [[Evaluate]] passes these through to its own caller, so you can capture them in the usual way:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] (a, b) {{eq}} [[Evaluate]](&amp;quot;_(1, 2)&amp;quot;) Do b &amp;amp;rarr; 2&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.1|2=|3=&lt;br /&gt;
== Limiting evaluation time ==&lt;br /&gt;
&#039;&#039;New to [[Analytica 7.1]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The optional «maxSeconds» parameter sets an approximate limit, in seconds, on how long the evaluation of «t» may run. «maxSeconds» may be fractional, so &amp;lt;code&amp;gt;maxSeconds: 0.1&amp;lt;/code&amp;gt; limits evaluation to roughly 100&amp;amp;nbsp;milliseconds. The default of &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; means no time limit.&lt;br /&gt;
&lt;br /&gt;
If the evaluation does not complete within «maxSeconds», it is aborted and [[Evaluate]] throws an error reading &#039;&#039;&amp;quot;Evaluate reached the maximum time limit of N seconds without completing.&amp;quot;&#039;&#039; Because this is an ordinary evaluation error, you can catch it with a surrounding [[Try]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Try]]( [[Evaluate]](&#039;Sum(Sqrt(1..100M))&#039;, maxSeconds: 0.5), catch: &#039;Timed out&#039; )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The timing is approximate -- evaluation stops the next time it checks for interruption -- so the limit adds no measurable overhead to normal evaluation. This makes «maxSeconds» well suited to probing how far a long-running evaluation gets within a time budget, rather than to enforcing a precise deadline.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.1|2=|3=&lt;br /&gt;
== Controlling warnings ==&lt;br /&gt;
&#039;&#039;New to [[Analytica 7.1]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Normally, a warning that occurs while «t» is being evaluated is shown to the user, just as it would be during any other evaluation. The optional «ignoreAtFirstWarning» parameter, when &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, silently does what pressing the &#039;&#039;Ignore warnings&#039;&#039; button would do when the first warning occurs: no warning dialog is shown, evaluation continues, and any further warnings during the same call are ignored entirely (so that, for example, a warning that occurs in every cell of a million-cell array does not repeat a million times).&lt;br /&gt;
&lt;br /&gt;
The text of the first warning still goes to the console output, so by also capturing the console output with «reportOutput» (see [[#Capturing console output|Capturing console output]] above) the calling code receives the warning text as feedback:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] warnText;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] result {{eq}} [[Evaluate]](&#039;Sqrt(-1)&#039;, ignoreAtFirstWarning: true, reportOutput: (Function(out) ::= (warnText := out)));&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;code&amp;gt;result&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;NaN&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;warnText&amp;lt;/code&amp;gt; contains the text &#039;&#039;&amp;quot;Warning: Square root of a negative number.&amp;quot;&#039;&#039; No dialog interrupts the user.&lt;br /&gt;
&lt;br /&gt;
The suppression applies only for the duration of the [[Evaluate]] call -- the previous warning setting is restored when [[Evaluate]] returns, so the user still sees warnings from later evaluations unless they had already silenced them. This parameter is particularly useful when code (such as an AI agent) calls [[Evaluate]] and wants feedback about warnings without showing dialogs to the user.&lt;br /&gt;
}}&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
=== Restricting side effects ===&lt;br /&gt;
&#039;&#039;New to [[What&#039;s new in Analytica 7.2?|Analytica 7.2]].&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The optional «sideEffects» parameter restricts what the evaluation of «t» may change. Use it when the text comes from a source you don&#039;t fully trust -- typed by an end user, or written by an AI agent -- and it should be able to look at the model but not change it. It takes one of these values (case doesn&#039;t matter):&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;quot;all&amp;quot;&amp;lt;/code&amp;gt; (the default): no restriction, the same as omitting the parameter.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;quot;inputs&amp;quot;&amp;lt;/code&amp;gt;: the semantics of browse-only mode. The expression may assign to variables that have a [[User Input nodes|user input node]], and to the system variables that can be changed in browse mode, such as [[SampleSize]] and [[RandomSeed]], but may change nothing else.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;: the expression may compute anything, but may not assign to any global variable or attribute.&lt;br /&gt;
&lt;br /&gt;
For example, when &amp;lt;code&amp;gt;Discount_rate&amp;lt;/code&amp;gt; has a user input node and &amp;lt;code&amp;gt;Npv_calc&amp;lt;/code&amp;gt; does not:&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](&#039;Sum(Revenue - Cost, Time)&#039;, sideEffects: &amp;quot;none&amp;quot;)&amp;lt;/code&amp;gt; &amp;amp;rarr; computes as usual&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](&#039;Discount_rate := 4%&#039;, sideEffects: &amp;quot;none&amp;quot;)&amp;lt;/code&amp;gt; &amp;amp;rarr; error&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](&#039;Discount_rate := 4%&#039;, sideEffects: &amp;quot;inputs&amp;quot;)&amp;lt;/code&amp;gt; &amp;amp;rarr; changes the input&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](&#039;Npv_calc := 0&#039;, sideEffects: &amp;quot;inputs&amp;quot;)&amp;lt;/code&amp;gt; &amp;amp;rarr; error&lt;br /&gt;
&lt;br /&gt;
The restriction applies to everything the evaluation does, not just to the text itself: inside every [[User-Defined Functions|user-defined function]] the expression calls, through a [[LocalAlias..Do|LocalAlias]], and in any nested call to Evaluate. A nested call can only make it stricter, never looser, so this is still refused:&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](&amp;quot;Evaluate(&#039;Npv_calc := 0&#039;, sideEffects: &#039;all&#039;)&amp;quot;, sideEffects: &amp;quot;none&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With either restriction, these are refused as well:&lt;br /&gt;
* Creating, moving or cloning objects, or changing node visibility: [[CreateNewObject]], [[Move]], [[CloneObjects]], [[ChangeNodeVisibility]]; and opening a model with [[OpenModelFile]].&lt;br /&gt;
* Typescript: [[EvaluateScript]], and the Script of a [[Buttons|button]] that the expression runs.&lt;br /&gt;
* Python: calling a Python function or method, or assigning to a Python variable.&lt;br /&gt;
* [[ReadFromUrl]] with a «method» other than GET or HEAD.&lt;br /&gt;
* Any function that the security policy marks with bit 8 (see below). The Analytica.ini that ships with Analytica marks the functions that write files ([[WriteTextFile]], [[WriteBinaryFile]], [[WriteImageFile]], SpreadsheetSave, SaveExcelWorkbook), manage files and folders ([[FileSystemCopy]], FileSystemMove, [[FileSystemDelete]], FileSystemNewFolder), run processes ([[RunConsoleProcess]]), write to databases ([[DbWrite]]), call [[COM Integration|COM objects]] (COMCreateObject, COMCallMethod, COMPutProperty), run Python code ([[PyCall]], [[PyEval]], PyExec, PyArray), or write optimization models (LpWrite, OptWrite, ...).&lt;br /&gt;
&lt;br /&gt;
A refusal is an ordinary evaluation error, so you can catch it with [[Try]]. Its message says what was refused and why, e.g., &#039;&#039;Evaluate(..., sideEffects: &amp;quot;none&amp;quot;) does not allow assignment to Npv_calc.&#039;&#039; When the refusal comes from inside a user-defined function that the expression calls, set «flags» to 1 so that the [[Try]] catches it:&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Try]]( [[Evaluate]](expr, sideEffects: &amp;quot;none&amp;quot;), flags: 1, catch: ErrorText )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Computing a variable&#039;s value and caching it is not a side effect, so a restricted evaluation can evaluate any variable in the model. If a variable&#039;s definition calls a refused function, evaluating it from a restricted evaluation throws the error and leaves the variable uncomputed. A later evaluation without the restriction computes it normally.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;«sideEffects» is not a sandbox.&#039;&#039;&#039; It prevents changes, not reading. A restricted expression can still read files, query databases, fetch URLs with GET, and see the value of any variable in the model. If that matters, restrict reading separately, for example through the security policy or operating-system permissions.&lt;br /&gt;
&lt;br /&gt;
==== The security policy bit ====&lt;br /&gt;
The functions refused this way are listed in the &amp;quot;Security policy&amp;quot; section near the end of Analytica.ini, where each line sets the function&#039;s &amp;lt;code&amp;gt;Att_whenDisallowed&amp;lt;/code&amp;gt; value. Bit 8 means &amp;quot;refused during a restricted evaluation&amp;quot;, and combines with the other bits by adding: for example, &amp;lt;code&amp;gt;Att_whenDisallowed WriteTextFile : 11&amp;lt;/code&amp;gt; is 3 (disallowed from inputs, and from user-defined functions called from inputs) plus 8. You can add 8 to other functions in the same way.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Limitations of Evaluate(t) ==&lt;br /&gt;
&lt;br /&gt;
There are some subtleties and limitations to Evaluate(«t») when «t» is a text value.&lt;br /&gt;
&lt;br /&gt;
{{Release|1=|2=6.5|3=If text «t» contains a  [[syntax]] error, [[Evaluate]](«t») gives no error message, and returns [[Null]].}}&lt;br /&gt;
&lt;br /&gt;
The context inside the  Evaluate parameter is global, not local. So:&lt;br /&gt;
:&amp;lt;code&amp;gt;Variable A := 100&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Variable B := ([[Local]] A := 0; [[Evaluate]](&#039;A + 1&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;B &amp;amp;rarr; 101&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Variable &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;Evaluate(&#039;A + 1&#039;)&amp;lt;/code&amp;gt; refers to the global &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;, not the local &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; defined in &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt;. More generally:&lt;br /&gt;
&lt;br /&gt;
* [[Evaluate]](t) creates its own context for [[Parsed Expressions|parsing]] «t» (at evaluation time), which is not the context of the expression in which the [[Evaluate]](t) appears  -- e.g., the definition of &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt; above.&lt;br /&gt;
* So, text «t» cannot refer to [[Local Values|local value]]s, [[index]]es, or [[function parameters]] defined in the context in which the [[Evaluate]](t) function appears.&lt;br /&gt;
* Text «t» may itself define local values and indexes, and refer to them, but these will not be available outside «t».&lt;br /&gt;
* If the text value of «t» refers to a global variable —e.g., &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; in the definition of &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt; above—these do not appear as Inputs of &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt;. &lt;br /&gt;
* More generally, Analytica cannot track the dependency of any variable name that appears inside the text. So, for example, any change to &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; will not cause automatic re-evaluation of &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt;:&lt;br /&gt;
:&amp;lt;code&amp;gt;A := 3&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;B := A + 1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;C := Evaluate(&#039;A + 1&#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;A := 5&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; changes, Analytica will automatically ensure that &amp;lt;code&amp;gt;B&amp;lt;/code&amp;gt; is updated, but it has no way of knowing &amp;lt;code&amp;gt;C&amp;lt;/code&amp;gt; should also be recomputed.&lt;br /&gt;
&lt;br /&gt;
The parameter «t» may itself be an expression that creates a text value to be evaluated by [[Evaluate]]. This text expression appears in the definition of &amp;lt;code&amp;gt;V&amp;lt;/code&amp;gt; and is not subject to the above limitations, so, for example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Variable V :=([[Local]] x:= ’10’; [[Evaluate]](x &amp;amp; x))&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;V &amp;amp;rarr; 1010&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== When to Use ==&lt;br /&gt;
&lt;br /&gt;
The cases in which you should use [[Evaluate]] are rare.  You should be reluctant to use it due to the caveats listed in the previous section. Typical cases when it is useful include:&lt;br /&gt;
* Parsing simple expressions.&lt;br /&gt;
* (advanced) Use in [[Meta-Inference]] algorithms where you are manipulating handles to objects in your model.&lt;br /&gt;
* (rare) Cases where you really do wish to by-pass dependency maintenance.  You want it to compute something the first time the result is requested after the model is first loaded, but not update when parent values are changes.&lt;br /&gt;
&lt;br /&gt;
== Non-text Parameters ==&lt;br /&gt;
&lt;br /&gt;
A non-text value can also be passed to [[Evaluate]], which can be of use in some [[Meta-Inference]] applications.  You need to keep in mind that the parameter to evaluate is evaluated BEFORE the function itself gets it, so evaluating a non-text value is only meaningful when the evaluated parameter is itself something that can still be evaluated.  One instance of this that is often useful is the case of a [[handle]] an object.&lt;br /&gt;
&lt;br /&gt;
For example, suppose &lt;br /&gt;
:&amp;lt;code&amp;gt;Variable A := 2  + 3&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Variable TheVar := [[Handle]](A)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the more general case, you might have a [[Meta-Inference]] algorithm that identifies a single variable object through some computation. Having identified the object, &amp;lt;code&amp;gt;TheVar&amp;lt;/code&amp;gt; now holds a handle to the object.  You then may want to access values or properties of the object pointed to by &amp;lt;code&amp;gt;TheVar&amp;lt;/code&amp;gt;, rather than just values or properties of &amp;lt;code&amp;gt;TheVar&amp;lt;/code&amp;gt; itself.  Evaluate serves this purpose:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;TheVar &amp;amp;rarr; A   { A -- i.e., a handle to the object A }&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](TheVar) &amp;amp;rarr; 5  { evaluates A }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is worth nothing that an alternative method also exists for evaluating a [[handle]].  You can declare a [[LocalAlias]] set to the handle, and then use its identifier as if it were the identifier of the object.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[LocalAlias]] x := TheVar Do x &amp;amp;rarr; 5    { x is an alias for A, so &amp;quot;x&amp;quot; in the body is the value of A }&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When accessing attributes of an object in a [[Meta-Inference]] algorithm, where your algorithm has a handle to an object (again, say it is in &amp;lt;code&amp;gt;TheVar&amp;lt;/code&amp;gt;), you can access the attribute using e.g.,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;Description Of Evaluate(TheVar) &amp;amp;rarr; &amp;quot;Description of A&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;Description Of TheVar &amp;amp;rarr; &amp;quot;Description of TheVar&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(the result of using &amp;lt;code&amp;gt;TheVar&amp;lt;/code&amp;gt; alone is shown for comparison).&lt;br /&gt;
&lt;br /&gt;
== Using Evaluate on a Function ==&lt;br /&gt;
&lt;br /&gt;
Given a [[handle]] to a function object, you can use [[Evaluate]] to call the function.  If the function expects &#039;&#039;N&#039;&#039; parameters, you would provide &#039;&#039;N+1&#039;&#039; parameters to [[Evaluate]] -- the first parameter being the handle to the function, and the remaining parameters being the values passed to the function.  Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] fn := [[If]] opt = 1 [[Then]] [[Handle]]([[Max]]) [[Else]] [[If]] opt = 2 [[Then]] [[Handle]]([[Min]]) [[Else]] [[Handle]]([[Sum]]);&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](fn, A, I)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters to the function being called are always passed by position, i.e., you cannot use a named-parameter calling syntax as you might if you were calling the function directly.  &lt;br /&gt;
&lt;br /&gt;
If the function being called contains repeated (or variable number of) parameters, and you need to include a parameter that follows the [[repeated parameter]], then you must place brackets around the repeated parameters.  For example, &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt; Function Fu1(x; y: repeated; z: optional) := ...&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;amp;nbsp;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](fn, 1, 2, 3, 4) &amp;amp;rarr;&amp;lt;/code&amp;gt; &lt;br /&gt;
::&#039;&#039;Equivalent to &amp;lt;code&amp;gt;Fu1(1, 2, 3, 4)&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;[2, 3, 4]&amp;lt;/code&amp;gt; are values for &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; is omitted&#039;&#039;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]](fn, 1, [2, 3], 4) &amp;amp;rarr;&amp;lt;/code&amp;gt; &lt;br /&gt;
::&#039;&#039;Equivalent to &amp;lt;code&amp;gt;Fu1(1, 2, 3, y: 4)&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;[2, 3]&amp;lt;/code&amp;gt; are values for &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;z&amp;lt;/code&amp;gt; is 4&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
However, there is a limitation that the first supplied parameter (i.e., the second parameter to [[Evaluate]]) cannot be placed inside brackets.  Likewise, you cannot pass an literal list by specifying the first parameter as a bracketed list.  This is because the repeated-parameter syntax applies equally to [[Evaluate]].  If you specify the first parameter to [[Evaluate]] in brackets, those become the parameters to the function, i.e.,:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]([[Handle]](F), [1, 2, 3, 4]) &amp;amp;rarr;&amp;lt;/code&amp;gt; &lt;br /&gt;
::&#039;&#039;Equivalent to &amp;lt;code&amp;gt;F(1, 2, 3, 4)&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Several common built-in functions, including [[Sum]], [[Max]], and [[Min]], allow a variable number of indexes, so that you can use &amp;lt;code&amp;gt;[[Sum]](A, I, J, K)&amp;lt;/code&amp;gt; to sum over 3 dimensions in a single call.  These functions also have [[optional parameter]]s, such as «ignoreNonNumbers», so that if you need to specify these optional parameters, you will need to place brackets around the index(es), even if only one (or zero) index is specified.  For example, the following examples show how to to specify «ignoreNonNumbers» as true to [[Sum]], when summing over a single index, and when summing over the [[implicit dimension]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]([[Handle]]([[Sum]]), A, [I], true)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] x := [3, 2, &#039;a&#039;, &#039;b&#039;, 6] do [[Evaluate]]([[Handle]]([[Sum]]),  x, [], true)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that if you don&#039;t need to specify the optional «ignoreNonNumbers» parameter (or any parameters that follow the repeated index parameters), then it is more natural to omit the brackets:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]([[Handle]]([[Sum]]), A, I)&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Local]] x := [3, 2, 5, 3, 6] do [[Evaluate]]([[Handle]]([[Sum]]), x)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Release|6.5||&lt;br /&gt;
== Evaluating in a different namespace context ==&lt;br /&gt;
&#039;&#039;New to [[Analytica 6.5]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Suppose there are two variables that both have the identifier X, but which live in different [[Namespaces]]. Then&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]( &amp;quot;X+1&amp;quot; )&amp;lt;/code&amp;gt;&lt;br /&gt;
would differ depending on where it appears. By default it resolves the identifier &amp;lt;code&amp;gt;X&amp;lt;/code&amp;gt; from the namespace of the object containing the expression. In some esoteric situations, you may need to interpret the expression from a different namespace context.  You can do this by first obtaining a handle to the other namespace module, or to any object inside that namespace, and passing that handle to the «nsContext» parameter.&lt;br /&gt;
:&amp;lt;code&amp;gt;[[Evaluate]]( &amp;quot;X+1&amp;quot;, nsContext: [[Handle]](&amp;quot;NS2&amp;quot;) )&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
* [[EvaluateScript]]&lt;br /&gt;
* [[Proactive Evaluation]]&lt;br /&gt;
* [[Evaluation Modes]]&lt;br /&gt;
* [[Handle]]&lt;br /&gt;
* [[Expression Syntax]]&lt;br /&gt;
* [[Expression Assist]]&lt;br /&gt;
* [[Parsed Expressions]]&lt;br /&gt;
* [[Function calls and parameters]]&lt;br /&gt;
* [[Summary of Programming Constructs]]&lt;br /&gt;
* [[Procedural Programming]]&lt;br /&gt;
* [[Meta-Inference]]{{Release|6.5||&lt;br /&gt;
* [[Namespaces]]}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Outline72_HoverIcons.png&amp;diff=64676</id>
		<title>File:Outline72 HoverIcons.png</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Outline72_HoverIcons.png&amp;diff=64676"/>
		<updated>2026-10-22T21:19:19Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Lchrisman uploaded a new version of File:Outline72 HoverIcons.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Outline72_HoverIconStrip.png&amp;diff=64675</id>
		<title>File:Outline72 HoverIconStrip.png</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Outline72_HoverIconStrip.png&amp;diff=64675"/>
		<updated>2026-10-22T21:19:06Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Outline window hover icons (Analytica 7.2): Diagram, Object window, Edit definition, Result.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Outline window hover icons (Analytica 7.2): Diagram, Object window, Edit definition, Result.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Outline72_ModulesOnly.png&amp;diff=64674</id>
		<title>File:Outline72 ModulesOnly.png</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Outline72_ModulesOnly.png&amp;diff=64674"/>
		<updated>2026-10-22T21:18:48Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Outline window (Analytica 7.2): the Costs module expanded to modules only, showing the (n objects hidden) hint.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Outline window (Analytica 7.2): the Costs module expanded to modules only, showing the (n objects hidden) hint.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Outline72_Expanded.png&amp;diff=64673</id>
		<title>File:Outline72 Expanded.png</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Outline72_Expanded.png&amp;diff=64673"/>
		<updated>2026-10-22T21:18:33Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: Outline window (Analytica 7.2): fully expanded modules, show-variables controls and :: namespace markers.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Outline window (Analytica 7.2): fully expanded modules, show-variables controls and :: namespace markers.&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=File:Outline72_HoverIcons.png&amp;diff=64672</id>
		<title>File:Outline72 HoverIcons.png</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=File:Outline72_HoverIcons.png&amp;diff=64672"/>
		<updated>2026-10-22T21:16:04Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Outline_window&amp;diff=64671</id>
		<title>Outline window</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Outline_window&amp;diff=64671"/>
		<updated>2026-10-22T20:56:40Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: fix link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Analytica User Guide]]&lt;br /&gt;
[[Category: Windows and dialogs]]&lt;br /&gt;
&amp;lt;breadcrumbs&amp;gt;Analytica User Guide &amp;gt; Working with Large Models &amp;gt; {{PAGENAME}}&amp;lt;/breadcrumbs&amp;gt;&lt;br /&gt;
{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Outline&#039;&#039;&#039; window shows the module hierarchy as an expandable outline -- like an expandable list of folders and documents. It gives you an easy way view and navigate a large model containing many modules.&lt;br /&gt;
&lt;br /&gt;
=== Opening the Outline window === &lt;br /&gt;
To open the &#039;&#039;&#039;Outline&#039;&#039;&#039; window, click the &#039;&#039;&#039;Outline&#039;&#039;&#039; button in the [[toolbar]] {{Release||4.6|[[image:Chapter19_5.png]]}}{{Release|5.0||[[image:ToolbarOutlineButton.png]]}}. The &#039;&#039;&#039;Outline&#039;&#039;&#039; window highlights the entry for the selected module or variable.&lt;br /&gt;
&lt;br /&gt;
=== Opening details from an outline === &lt;br /&gt;
To display a module’s [[Diagram window]], double-click its entry in the outline. To jump to a variable and open the &#039;&#039;&#039;Diagram&#039;&#039;&#039; containing it, double-click its entry in the outline. To display a variable’s [[Object window]], select it and press the &#039;&#039;&#039;Object Window&#039;&#039;&#039; button in the [[toolbar]] ({{Release||4.6|[[image:Chapter19_6.png]]}}{{Release|5.0||[[image:ToolbarObjectWindowButton.png]]}}). These options are also found on the right-mouse context menu when you right-click on an item.&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
=== Hover icons ===&lt;br /&gt;
When the mouse rests briefly on a line of the outline, a small strip of icons appears at the right side of that line -- the same idea as the hover icons on a [[Diagram window]] node (see [[Hover icons]]). Each icon acts on the object on that line:&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_HoverIcons.png]]&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_HoverIconStrip.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Diagram&#039;&#039;&#039; -- goes to the object&#039;s node in its parent diagram, selecting it. For a module, opens its diagram.&lt;br /&gt;
* &#039;&#039;&#039;Object window&#039;&#039;&#039; -- opens the object&#039;s [[Object window]].&lt;br /&gt;
* &#039;&#039;&#039;Edit definition&#039;&#039;&#039; (&#039;&#039;x+y&#039;&#039;) -- shows the object&#039;s definition in the [[Attribute panel]] at the bottom of the &#039;&#039;&#039;Outline&#039;&#039;&#039; window, ready to edit. For a variable defined as a table, an &#039;&#039;&#039;Edit table&#039;&#039;&#039; icon (a grid) appears instead and opens its edit table (see [[To edit a table]]).&lt;br /&gt;
* &#039;&#039;&#039;Result&#039;&#039;&#039; -- shows the object&#039;s result in a [[Result window]].&lt;br /&gt;
&lt;br /&gt;
An icon appears only when its action applies to that object: for example, there is no &#039;&#039;&#039;Result&#039;&#039;&#039; icon on a module or on a variable with no definition, and the editing and result icons are hidden while a computation is in progress. Clicking an icon first selects that line in the outline, then performs the action.&lt;br /&gt;
}}&lt;br /&gt;
=== Expanding and contracting the outline ===  &lt;br /&gt;
{{Release|1=|2=7.1|3=By default, the outline lists all nodes in the model. Check the &#039;&#039;Modules Only&#039;&#039; box to list only the modules (exclude variables and functions). &lt;br /&gt;
&lt;br /&gt;
:{{CalloutAnnotationBlock|[[image:OutlineWindowModulesOnly.png]]|{{CalloutAnnotation|&lt;br /&gt;
Click here to see modules only|v=40|pt=23,55|path=m!}} }}&lt;br /&gt;
&lt;br /&gt;
In the outline, each module entry has a triangle icon [[File:Chapter19_8.png]] or [[File:Chapter19_9.png]] to let you display or hide the module’s contents.&lt;br /&gt;
&lt;br /&gt;
[[File:Chapter19_8.png]] Indicates that the module’s contents are &#039;&#039;not&#039;&#039; shown in the &#039;&#039;&#039;Outline&#039;&#039;&#039; window. Click this icon to display the module’s contents.&lt;br /&gt;
&lt;br /&gt;
[[File:Chapter19_9.png]] Indicates that the module’s contents are shown as an indented list. Click this icon to hide the module’s contents&lt;br /&gt;
}}{{Release|1=7.2|2=|3=&lt;br /&gt;
Each module line has a small triangle to its left. Click the triangle to expand the module (show its contents as an indented list beneath it) or to collapse it again. Alt+click the triangle to expand the module and all the modules inside it, or to collapse them all.&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_Expanded.png]]&lt;br /&gt;
&lt;br /&gt;
When a module is expanded, a small &#039;&#039;show-variables&#039;&#039; control (three short horizontal lines) appears just to the right of its module icon. It lets you choose, per module, whether the expanded module lists all of its contents or only the modules inside it:&lt;br /&gt;
* &#039;&#039;&#039;Blue&#039;&#039;&#039; -- the module&#039;s variables, functions and other non-module objects are listed along with its modules.&lt;br /&gt;
* &#039;&#039;&#039;Gray&#039;&#039;&#039; -- only its modules are listed. A gray, italic hint after the module&#039;s name, such as &#039;&#039;(3 objects hidden)&#039;&#039;, tells you how many objects are not being shown.&lt;br /&gt;
Click the control to switch between the two. So each module line has three states: collapsed, expanded to show modules only, and fully expanded.&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_ModulesOnly.png]]&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;Costs&#039;&#039;&#039; has been switched to show modules only, so its three variables are hidden, while its submodule &#039;&#039;&#039;Labor&#039;&#039;&#039; still lists its own variables.&lt;br /&gt;
&lt;br /&gt;
Each module remembers its own setting, even when you collapse it and expand it again. A module that you expand for the first time takes the setting of the nearest module above it that has one; at the top level, everything is shown. This per-module control replaces the single &#039;&#039;Modules Only&#039;&#039; checkbox of earlier releases, so you can, for example, list just the module structure of one large part of the model while still seeing the variables of another.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
=== Namespaces ===&lt;br /&gt;
A module that is also a namespace (see [[Namespaces]]) shows a gray &amp;lt;code&amp;gt;::&amp;lt;/code&amp;gt; after its name, as with &#039;&#039;&#039;Sales plan&#039;&#039;&#039; and &#039;&#039;&#039;Finance&#039;&#039;&#039; in the screenshots above, and &#039;&#039;&#039;System Libraries&#039;&#039;&#039;. The marker reminds you that identifiers inside that module may need to be qualified with the module&#039;s identifier (as in &amp;lt;code&amp;gt;Finance::Revenue&amp;lt;/code&amp;gt;) when referred to from outside it. The top-level model is always a namespace; any other module becomes one when its &#039;&#039;NamespaceDefaultScope&#039;&#039; attribute is set.&lt;br /&gt;
&lt;br /&gt;
=== Keyboard navigation ===&lt;br /&gt;
When the &#039;&#039;&#039;Outline&#039;&#039;&#039; window has the focus, you can move around the outline with the keyboard:&lt;br /&gt;
* &#039;&#039;&#039;Up&#039;&#039;&#039; / &#039;&#039;&#039;Down&#039;&#039;&#039; arrows move the selection to the previous or next line; &#039;&#039;&#039;Home&#039;&#039;&#039; and &#039;&#039;&#039;End&#039;&#039;&#039; go to the first or last line.&lt;br /&gt;
* &#039;&#039;&#039;Right&#039;&#039;&#039; arrow expands a collapsed module, or, on an expanded module, moves to its first item. &#039;&#039;&#039;Left&#039;&#039;&#039; arrow collapses an expanded module, or otherwise moves to the line of the module that contains the selected item.&lt;br /&gt;
* &#039;&#039;&#039;Shift+Right&#039;&#039;&#039; and &#039;&#039;&#039;Shift+Left&#039;&#039;&#039; turn the show-variables control on or off for the selected module (or for the module containing the selected item).&lt;br /&gt;
* &#039;&#039;&#039;Enter&#039;&#039;&#039; does the same as double-clicking the selected line; &#039;&#039;&#039;Ctrl+Enter&#039;&#039;&#039; opens it in a new window.&lt;br /&gt;
* Typing letters jumps to the next line whose title (or identifier, when identifiers are shown) starts with what you typed. Pausing for a second starts a new search; typing the same letter repeatedly cycles through the matching lines.&lt;br /&gt;
}}&lt;br /&gt;
=== System Libraries ===&lt;br /&gt;
The &#039;&#039;&#039;System Libraries&#039;&#039;&#039; folder contains built-in functions, operators and system variables organized by category. Leaving this folder open can be a convenient way to locate the function you need when writing a definition.&lt;br /&gt;
&lt;br /&gt;
=== Found objects ===&lt;br /&gt;
The &#039;&#039;&#039;Found objects&#039;&#039;&#039; folder contains the &amp;quot;found set&amp;quot; -- the set of objects matching the most recent [[Find Dialog|Find Object]] results. When using [[Find Dialog|Find Object]], press the &#039;&#039;&#039;List&#039;&#039;&#039; button to populate this folder.  &lt;br /&gt;
&lt;br /&gt;
The folder actually contains the contents of the [[Sys_FoundSet]] system variable. If you want to use an Analytica expression to find a set of matching objects, you can set [[Sys_FoundSet]] from a button [[OnClick]] or from the [[Typescript window]].&lt;br /&gt;
&lt;br /&gt;
=== Viewing and editing attributes === &lt;br /&gt;
The [[Attribute panel]] at the bottom of the &#039;&#039;&#039;Outline&#039;&#039;&#039; window works just like the [[Attribute panel]] available at the bottom of a [[Diagram window]]. To view the attributes of a listed node:&lt;br /&gt;
&lt;br /&gt;
# Select the node by clicking it.&lt;br /&gt;
# Choose the attribute to examine from the &#039;&#039;&#039;Attribute&#039;&#039;&#039; popup menu &lt;br /&gt;
&lt;br /&gt;
See [[Definitions]].&lt;br /&gt;
&lt;br /&gt;
If you edit attributes in this panel, the changes are propagated to any other [[Attribute panel]]s and&lt;br /&gt;
[[Object window]]s.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Viewing values === &lt;br /&gt;
To see the &#039;&#039;&#039;Outline&#039;&#039;&#039; window with mid values, select [[Values in Object Window|Show With Values]] from the [[Object menu]]. Each variable whose mid value has been evaluated and is an atom displays in the window.&lt;br /&gt;
&lt;br /&gt;
:[[File:Chapter19_10.png]]&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
* [[Object window]]&lt;br /&gt;
* [[Values in Object Window]]&lt;br /&gt;
* [[Diagram window]]&lt;br /&gt;
* [[Windows and dialogs]]&lt;br /&gt;
* [[Attribute panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;footer&amp;gt;Module hierarchy / {{PAGENAME}} / Find variables and other objects &amp;lt;/footer&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
	<entry>
		<id>https://docs.analytica.com/index.php?title=Outline_window&amp;diff=64670</id>
		<title>Outline window</title>
		<link rel="alternate" type="text/html" href="https://docs.analytica.com/index.php?title=Outline_window&amp;diff=64670"/>
		<updated>2026-10-22T20:56:21Z</updated>

		<summary type="html">&lt;p&gt;Lchrisman: 7.2: hover icons (ER 22442), per-module show-variables control replacing Modules Only (ER 22441), :: namespace marker, keyboard navigation (ER 20430)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Analytica User Guide]]&lt;br /&gt;
[[Category: Windows and dialogs]]&lt;br /&gt;
&amp;lt;breadcrumbs&amp;gt;Analytica User Guide &amp;gt; Working with Large Models &amp;gt; {{PAGENAME}}&amp;lt;/breadcrumbs&amp;gt;&lt;br /&gt;
{{ReleaseBar}}&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Outline&#039;&#039;&#039; window shows the module hierarchy as an expandable outline -- like an expandable list of folders and documents. It gives you an easy way view and navigate a large model containing many modules.&lt;br /&gt;
&lt;br /&gt;
=== Opening the Outline window === &lt;br /&gt;
To open the &#039;&#039;&#039;Outline&#039;&#039;&#039; window, click the &#039;&#039;&#039;Outline&#039;&#039;&#039; button in the [[toolbar]] {{Release||4.6|[[image:Chapter19_5.png]]}}{{Release|5.0||[[image:ToolbarOutlineButton.png]]}}. The &#039;&#039;&#039;Outline&#039;&#039;&#039; window highlights the entry for the selected module or variable.&lt;br /&gt;
&lt;br /&gt;
=== Opening details from an outline === &lt;br /&gt;
To display a module’s [[Diagram window]], double-click its entry in the outline. To jump to a variable and open the &#039;&#039;&#039;Diagram&#039;&#039;&#039; containing it, double-click its entry in the outline. To display a variable’s [[Object window]], select it and press the &#039;&#039;&#039;Object Window&#039;&#039;&#039; button in the [[toolbar]] ({{Release||4.6|[[image:Chapter19_6.png]]}}{{Release|5.0||[[image:ToolbarObjectWindowButton.png]]}}). These options are also found on the right-mouse context menu when you right-click on an item.&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
=== Hover icons ===&lt;br /&gt;
When the mouse rests briefly on a line of the outline, a small strip of icons appears at the right side of that line -- the same idea as the hover icons on a [[Diagram window]] node (see [[Pop up node controls]]). Each icon acts on the object on that line:&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_HoverIcons.png]]&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_HoverIconStrip.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Diagram&#039;&#039;&#039; -- goes to the object&#039;s node in its parent diagram, selecting it. For a module, opens its diagram.&lt;br /&gt;
* &#039;&#039;&#039;Object window&#039;&#039;&#039; -- opens the object&#039;s [[Object window]].&lt;br /&gt;
* &#039;&#039;&#039;Edit definition&#039;&#039;&#039; (&#039;&#039;x+y&#039;&#039;) -- shows the object&#039;s definition in the [[Attribute panel]] at the bottom of the &#039;&#039;&#039;Outline&#039;&#039;&#039; window, ready to edit. For a variable defined as a table, an &#039;&#039;&#039;Edit table&#039;&#039;&#039; icon (a grid) appears instead and opens its edit table (see [[To edit a table]]).&lt;br /&gt;
* &#039;&#039;&#039;Result&#039;&#039;&#039; -- shows the object&#039;s result in a [[Result window]].&lt;br /&gt;
&lt;br /&gt;
An icon appears only when its action applies to that object: for example, there is no &#039;&#039;&#039;Result&#039;&#039;&#039; icon on a module or on a variable with no definition, and the editing and result icons are hidden while a computation is in progress. Clicking an icon first selects that line in the outline, then performs the action.&lt;br /&gt;
}}&lt;br /&gt;
=== Expanding and contracting the outline ===  &lt;br /&gt;
{{Release|1=|2=7.1|3=By default, the outline lists all nodes in the model. Check the &#039;&#039;Modules Only&#039;&#039; box to list only the modules (exclude variables and functions). &lt;br /&gt;
&lt;br /&gt;
:{{CalloutAnnotationBlock|[[image:OutlineWindowModulesOnly.png]]|{{CalloutAnnotation|&lt;br /&gt;
Click here to see modules only|v=40|pt=23,55|path=m!}} }}&lt;br /&gt;
&lt;br /&gt;
In the outline, each module entry has a triangle icon [[File:Chapter19_8.png]] or [[File:Chapter19_9.png]] to let you display or hide the module’s contents.&lt;br /&gt;
&lt;br /&gt;
[[File:Chapter19_8.png]] Indicates that the module’s contents are &#039;&#039;not&#039;&#039; shown in the &#039;&#039;&#039;Outline&#039;&#039;&#039; window. Click this icon to display the module’s contents.&lt;br /&gt;
&lt;br /&gt;
[[File:Chapter19_9.png]] Indicates that the module’s contents are shown as an indented list. Click this icon to hide the module’s contents&lt;br /&gt;
}}{{Release|1=7.2|2=|3=&lt;br /&gt;
Each module line has a small triangle to its left. Click the triangle to expand the module (show its contents as an indented list beneath it) or to collapse it again. Alt+click the triangle to expand the module and all the modules inside it, or to collapse them all.&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_Expanded.png]]&lt;br /&gt;
&lt;br /&gt;
When a module is expanded, a small &#039;&#039;show-variables&#039;&#039; control (three short horizontal lines) appears just to the right of its module icon. It lets you choose, per module, whether the expanded module lists all of its contents or only the modules inside it:&lt;br /&gt;
* &#039;&#039;&#039;Blue&#039;&#039;&#039; -- the module&#039;s variables, functions and other non-module objects are listed along with its modules.&lt;br /&gt;
* &#039;&#039;&#039;Gray&#039;&#039;&#039; -- only its modules are listed. A gray, italic hint after the module&#039;s name, such as &#039;&#039;(3 objects hidden)&#039;&#039;, tells you how many objects are not being shown.&lt;br /&gt;
Click the control to switch between the two. So each module line has three states: collapsed, expanded to show modules only, and fully expanded.&lt;br /&gt;
&lt;br /&gt;
:[[File:Outline72_ModulesOnly.png]]&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;Costs&#039;&#039;&#039; has been switched to show modules only, so its three variables are hidden, while its submodule &#039;&#039;&#039;Labor&#039;&#039;&#039; still lists its own variables.&lt;br /&gt;
&lt;br /&gt;
Each module remembers its own setting, even when you collapse it and expand it again. A module that you expand for the first time takes the setting of the nearest module above it that has one; at the top level, everything is shown. This per-module control replaces the single &#039;&#039;Modules Only&#039;&#039; checkbox of earlier releases, so you can, for example, list just the module structure of one large part of the model while still seeing the variables of another.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Release|1=7.2|2=|3=&lt;br /&gt;
=== Namespaces ===&lt;br /&gt;
A module that is also a namespace (see [[Namespaces]]) shows a gray &amp;lt;code&amp;gt;::&amp;lt;/code&amp;gt; after its name, as with &#039;&#039;&#039;Sales plan&#039;&#039;&#039; and &#039;&#039;&#039;Finance&#039;&#039;&#039; in the screenshots above, and &#039;&#039;&#039;System Libraries&#039;&#039;&#039;. The marker reminds you that identifiers inside that module may need to be qualified with the module&#039;s identifier (as in &amp;lt;code&amp;gt;Finance::Revenue&amp;lt;/code&amp;gt;) when referred to from outside it. The top-level model is always a namespace; any other module becomes one when its &#039;&#039;NamespaceDefaultScope&#039;&#039; attribute is set.&lt;br /&gt;
&lt;br /&gt;
=== Keyboard navigation ===&lt;br /&gt;
When the &#039;&#039;&#039;Outline&#039;&#039;&#039; window has the focus, you can move around the outline with the keyboard:&lt;br /&gt;
* &#039;&#039;&#039;Up&#039;&#039;&#039; / &#039;&#039;&#039;Down&#039;&#039;&#039; arrows move the selection to the previous or next line; &#039;&#039;&#039;Home&#039;&#039;&#039; and &#039;&#039;&#039;End&#039;&#039;&#039; go to the first or last line.&lt;br /&gt;
* &#039;&#039;&#039;Right&#039;&#039;&#039; arrow expands a collapsed module, or, on an expanded module, moves to its first item. &#039;&#039;&#039;Left&#039;&#039;&#039; arrow collapses an expanded module, or otherwise moves to the line of the module that contains the selected item.&lt;br /&gt;
* &#039;&#039;&#039;Shift+Right&#039;&#039;&#039; and &#039;&#039;&#039;Shift+Left&#039;&#039;&#039; turn the show-variables control on or off for the selected module (or for the module containing the selected item).&lt;br /&gt;
* &#039;&#039;&#039;Enter&#039;&#039;&#039; does the same as double-clicking the selected line; &#039;&#039;&#039;Ctrl+Enter&#039;&#039;&#039; opens it in a new window.&lt;br /&gt;
* Typing letters jumps to the next line whose title (or identifier, when identifiers are shown) starts with what you typed. Pausing for a second starts a new search; typing the same letter repeatedly cycles through the matching lines.&lt;br /&gt;
}}&lt;br /&gt;
=== System Libraries ===&lt;br /&gt;
The &#039;&#039;&#039;System Libraries&#039;&#039;&#039; folder contains built-in functions, operators and system variables organized by category. Leaving this folder open can be a convenient way to locate the function you need when writing a definition.&lt;br /&gt;
&lt;br /&gt;
=== Found objects ===&lt;br /&gt;
The &#039;&#039;&#039;Found objects&#039;&#039;&#039; folder contains the &amp;quot;found set&amp;quot; -- the set of objects matching the most recent [[Find Dialog|Find Object]] results. When using [[Find Dialog|Find Object]], press the &#039;&#039;&#039;List&#039;&#039;&#039; button to populate this folder.  &lt;br /&gt;
&lt;br /&gt;
The folder actually contains the contents of the [[Sys_FoundSet]] system variable. If you want to use an Analytica expression to find a set of matching objects, you can set [[Sys_FoundSet]] from a button [[OnClick]] or from the [[Typescript window]].&lt;br /&gt;
&lt;br /&gt;
=== Viewing and editing attributes === &lt;br /&gt;
The [[Attribute panel]] at the bottom of the &#039;&#039;&#039;Outline&#039;&#039;&#039; window works just like the [[Attribute panel]] available at the bottom of a [[Diagram window]]. To view the attributes of a listed node:&lt;br /&gt;
&lt;br /&gt;
# Select the node by clicking it.&lt;br /&gt;
# Choose the attribute to examine from the &#039;&#039;&#039;Attribute&#039;&#039;&#039; popup menu &lt;br /&gt;
&lt;br /&gt;
See [[Definitions]].&lt;br /&gt;
&lt;br /&gt;
If you edit attributes in this panel, the changes are propagated to any other [[Attribute panel]]s and&lt;br /&gt;
[[Object window]]s.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Viewing values === &lt;br /&gt;
To see the &#039;&#039;&#039;Outline&#039;&#039;&#039; window with mid values, select [[Values in Object Window|Show With Values]] from the [[Object menu]]. Each variable whose mid value has been evaluated and is an atom displays in the window.&lt;br /&gt;
&lt;br /&gt;
:[[File:Chapter19_10.png]]&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
* [[Object window]]&lt;br /&gt;
* [[Values in Object Window]]&lt;br /&gt;
* [[Diagram window]]&lt;br /&gt;
* [[Windows and dialogs]]&lt;br /&gt;
* [[Attribute panel]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;footer&amp;gt;Module hierarchy / {{PAGENAME}} / Find variables and other objects &amp;lt;/footer&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lchrisman</name></author>
	</entry>
</feed>