{ Analytica Model Genie_Library, encoding="UTF-8" } SoftwareVersion 6.5.4 { System Variables with non-default values: } SampleSize := 1000 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!50000|OutlinerState Sys_FoundSet: 2,909,199,450,600} {!-50299|DiagramColor Model: 65535,65535,65535} {!-50299|DiagramColor Module: 65535,65535,65535} {!-50299|DiagramColor LinkModule: 65535,65535,65535} {!-50299|DiagramColor Library: 65535,65535,65535} {!-50299|DiagramColor LinkLibrary: 65535,65535,65535} {!-50299|DiagramColor Form: 65535,65535,65535} NodeInfo FormNode: 1,0,0,,0,0,,,,0,,,0 {!-50299|NodeColor Text: 62258,62258,62258} {!-60000|Attribute AcpStyles} AskAttribute MetaOnly,Variable,Yes Model Genie_Library Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Sep 9, 2024 4:19 AM DiagState: 2,201,17,1781,669,17,10 WindState: 2,98,82,720,350 FontStyle: Arial,15 FileInfo: 0,Model Genie_Library,2,2,0,0,C:\Users\filst\Downloads\SMILE COM Data\Genie_Library.ana Button Import_selected_model Title: Import selected model NodeLocation: 80,384,1 NodeSize: 64,24 OnClick: Call_Create_Functions;~ Call_Create_Labels;~ Call_Color_Nodes;~ Call_Move_Nodes;~ Call_Assign_Definiti;~ IF PositionInIndex(Files_with_Extra_Adjustments, File_to_Read, Files_with_Extra_Adjustments) THEN~ final_adjustments FormNode Fo1654017139 Title: File to Read Definition: 0 NodeLocation: 236,336,1 NodeSize: 220,16 NodeInfo: 1,,,,,,,325,,,,,,0 Original: File_to_Read Module Library_Contents Title: Library Contents Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Oct 28, 2024 3:41 AM NodeLocation: 392,384,1 NodeSize: 64,24 NodeInfo: 1,,0,,,,,,,,0 DiagState: 2,0,0,1633,554,17,10 Variable SmileLicense Title: SmileLicense Definition: COMCreateObject("SmileLicense") NodeLocation: 128,80,1 NodeSize: 64,24 Variable SmileNetwork Title: SmileNetwork Definition: COMCreateObject("SmileNetwork") NodeLocation: 312,136,1 NodeSize: 64,24 ValueState: 2,62,78,416,303,,MIDM Variable Initialize Title: Initialize Definition: SMILE_Initialize(SmileLicense, licenseKey, variantArray) NodeLocation: 128,136,1 NodeSize: 64,24 ValueState: 2,228,234,415,303,,MIDM Module Initialize_Component Title: Initialize Components Author: Ben Filstrup~ Lumina Decision Systems Date: Thu, Sep 12, 2024 5:45 PM NodeLocation: 128,208,1 NodeSize: 64,24 DiagState: 2,0,0,944,500,17,10 Constant licenseKey Title: licenseKey Definition: "SMILE LICENSE 65723727 24de99f6 159b2dcb " &~ "Serial #: b6tg0qhrbxbp2jrsq8iakf0v " &~ "Valid until: 2025-09-11 " &~ "Support ends on: 2025-09-11 " &~ "Issued for: Lumina Team " &~ "Organization: Lumina Decision Systems " &~ "Only for development of Analytica/GeNIe library and integration testing." NodeLocation: 112,48,1 NodeSize: 64,24 Variable variantArray Title: variantArray Definition: COMArray( newarray, I) NodeLocation: 416,120,1 NodeSize: 64,24 ValueState: 2,1007,11,416,303,,MIDM Index I Title: I Definition: 1..Size(byteArray) NodeLocation: 416,48,1 NodeSize: 64,24 Constant byteArray Title: byteArray Definition: [221,26,165,100,27,37,200,78,169,30,68,172,242,22,242,120,230,122,13,77,43,130,200,241,255,54,187,40,112,217,49,9,87,83,61,124,181,18,37,121,12,88,187,28,156,48,245,51,84,217,169,253,246,125,154,140,34,166,121,169,186,208,171,115] NodeLocation: 264,48,1 NodeSize: 64,24 Variable newarray Title: newarray Definition: Array(I,byteArray) NodeLocation: 264,120,1 NodeSize: 64,24 ValueState: 2,1002,374,416,303,,MIDM Close Initialize_Component Function SMILE_ReadFile(Smile_Network_COM_Object; XDSL_File_Path) Title: SMILE_ReadFile Description: Reads the XDSL file from disk. Definition: COMCallMethod(smileNetwork, "ReadFile", XDSL_File_Path);~ 1 NodeLocation: 688,104,1 NodeSize: 104,24 WindState: 2,740,530,720,350 Function SMILE_UpdateBeliefs(Smile_Network_COM_Object) Title: SMILE_UpdateBeliefs Description: Updates the network (the model being read from) with any new evidence set.~ ~ Related functions:~ - SMILE_SetEvidence~ - SMILE_GetEvidence~ - SMILE_IsEvidence~ - SMILE_ClearEvidence Definition: COMCallMethod(SmileNetwork, "UpdateBeliefs");~ 1 NodeLocation: 688,160,1 NodeSize: 104,24 WindState: 2,87,430,720,350 Function SMILE_GetAllNodeIds(Smile_Network_COM_Object) Title: SMILE_GetAllNodeIds Description: Returns an array of all node handles (identifiers). Definition: COMCallMethod(SmileNetwork, "GetAllNodeIds") NodeLocation: 688,216,1 NodeSize: 104,24 Function SMILE_GetNodeName(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetNodeName Description: Returns the node name attribute. Definition: COMCallMethod(SmileNetwork, "GetNodeName", Node_ID) NodeLocation: 688,272,1 NodeSize: 104,24 Function SMILE_GetNodeType(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetNodeType Description: Returns the node type attribute. Definition: COMCallMethod(SmileNetwork, "GetNodeType", Node_ID) NodeLocation: 904,48,1 NodeSize: 104,24 Function SMILE_ClearAllEviden(Smile_Network_COM_Object) Title: SMILE_ClearAllEvidence Description: Clears evidence for all nodes. Definition: COMCallMethod(SmileNetwork, "ClearAllEvidence");~ 1 NodeLocation: 904,104,1 NodeSize: 104,24 Function SMILE_ClearAllTarget(Smile_Network_COM_Object) Title: SMILE_ClearAllTargets Description: Clears targets for all nodes. Definition: COMCallMethod(smileNetwork, "ClearAllTargets");~ 1 NodeLocation: 904,160,1 NodeSize: 104,24 Function SMILE_SetEvidence(Smile_Network_COM_Object, Node_ID, Evidence) Title: SMILE_SetEvidence Description: Sets the evidence for the selected node. Definition: COMCallMethod(SmileNetwork, "SetEvidence", Node_ID, Evidence);~ Evidence NodeLocation: 904,216,1 NodeSize: 104,24 Function SMILE_GetEvidence(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetEvidence Description: Returns the evidence from the selected node. Definition: COMCallMethod(SmileNetwork, "GetEvidence", Node_ID) NodeLocation: 904,272,1 NodeSize: 104,24 Function SMILE_IsEvidence(Smile_Network_COM_Object, Node_ID) Title: SMILE_IsEvidence Description: Checks to see if evidence (obervation) is set. Definition: COMCallMethod(SmileNetwork, "IsEvidence", Node_ID) NodeLocation: 1120,48,1 NodeSize: 104,24 Function SMILE_ClearEvidence(Smile_Network_COM_Object, Node_ID) Title: SMILE_ClearEvidence Description: Clears evidence (obervation) from selected node. Definition: COMCallMethod(SmileNetwork, "ClearEvidence", Node_ID);~ 1 NodeLocation: 1120,104,1 NodeSize: 104,24 Function SMILE_IsTarget(Smile_Network_COM_Object, Node_ID) Title: SMILE_IsTarget Description: Returns if the selected node is set as a target. More information on target nodes below:~ ~ Target nodes are always guaranteed to be updated by the inference algorithm. Other nodes, i.e., nodes that are not designated as targets, may be updated or not, depending on the internals of the algorithm used, but are not guaranteed to be updated. Focusing inference on the target nodes can reduce time and memory required to complete the calculation. When no targets are specified, SMILE assumes that all nodes are of interest to the user. Definition: COMCallMethod(SmileNetwork, "IsTarget", Node_ID) NodeLocation: 1120,160,1 NodeSize: 104,24 Function SMILE_SetTarget(Smile_Network_COM_Object, Node_ID, Bool) Title: SMILE_SetTarget Description: Sets selected node to either True (target) or False (not a target). More information on target nodes below:~ ~ Target nodes are always guaranteed to be updated by the inference algorithm. Other nodes, i.e., nodes that are not designated as targets, may be updated or not, depending on the internals of the algorithm used, but are not guaranteed to be updated. Focusing inference on the target nodes can reduce time and memory required to complete the calculation. When no targets are specified, SMILE assumes that all nodes are of interest to the user. Definition: COMCallMethod(SmileNetwork, "SetTarget", Node_ID, Bool);~ Bool NodeLocation: 1120,216,1 NodeSize: 104,24 Function SMILE_GetOutcomeIds(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetOutcomeIds Description: Returns Index elements tied to corresponding chance node. Definition: COMCallMethod(SmileNetwork, "GetOutcomeIds", Node_ID) NodeLocation: 1120,272,1 NodeSize: 104,24 Function SMILE_IsValueValid(Smile_Network_COM_Object, Node_ID) Title: SMILE_IsValueValid Description: Validity status; a flag set to true by the inference algorithm after it succesfully completes the calculations for the given node. Definition: COMCallMethod(SmileNetwork, "IsValueValid", Node_ID) NodeLocation: 1336,48,1 NodeSize: 104,24 Function SMILE_IsValueDiscret(Smile_Network_COM_Object, Node_ID) Title: SMILE_IsValueDiscretized Description: Tells you whether your results are samples or discretized. Definition: COMCallMethod(SmileNetwork, "IsValueDiscretized", Node_ID) NodeLocation: 1336,104,1 NodeSize: 104,24 Function SMILE_GetNodeValue(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetNodeValue Description: Returns the specified node's value. Definition: COMCallMethod(SmileNetwork, "GetNodeValue", Node_ID) NodeLocation: 1336,160,1 NodeSize: 104,24 Function SMILE_GetNodeMean(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetNodeMean Description: Returns the specified node's mean. Definition: COMCallMethod(SmileNetwork, "GetNodeMean", Node_ID) NodeLocation: 1336,216,1 NodeSize: 104,24 Function SMILE_GetNodeStdDev(Smile_Network_COM_Object, Node_ID) Title: SMILE_GetNodeStdDev Description: Returns the specified node's standard deviation. Definition: COMCallMethod(SmileNetwork, "GetNodeStdDev", Node_ID) NodeLocation: 1336,272,1 NodeSize: 104,24 Function SMILE_Initialize(Smile_License_COM_Object, license_key, variant_array) Title: SMILE_Initialize Description: Validates SMILE licensing key to create SMILE COM objects and use the SMILE COM functions. Definition: COMCallMethod(Smile_License_COM_Object, "Initialize", license_key, variant_array) NodeLocation: 688,48,1 NodeSize: 104,24 WindState: 2,80,605,720,350 Decision File_to_Read Title: File to Read Definition: Choice(XDSL_Files,1,0) NodeLocation: 312,320,1 NodeSize: 64,24 Aliases: FormNode Fo1654017139, FormNode Fo690545587, FormNode Fo1217598387 FormNode Fo690545587 Title: File to Read Definition: 0 NodeLocation: 312,360,1 NodeSize: 64,16 NodeInfo: 1,,,0,,,,112,,,0,,,0 Original: File_to_Read Text Te1692984243 Title: Can only run once NodeLocation: 132,100,-1 NodeSize: 84,76 NodeInfo: 1,,,,,1 Variable Update Title: Update Definition: 37 NodeLocation: 456,56,1 NodeSize: 64,24 Button Refresh1 Title: Refresh NodeLocation: 312,56,1 NodeSize: 64,24 Aliases: Alias Al991105971 OnClick: Update := Update + 1 Module File_Folder_Details Title: File Folder Details Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Sep 16, 2024 8:13 AM NodeLocation: 312,208,1 NodeSize: 64,24 DiagState: 2,833,134,944,500,17,10 Index XDSL_Files Title: XDSL Files Definition: FileSystemListing(Data_Folder & XDSL_File_Extension) NodeLocation: 112,136,1 NodeSize: 64,24 Aliases: Alias Al1558385587 Constant XDSL_File_Extension Title: XDSL File Extension Definition: '*.xdsl' NodeLocation: 272,136,1 NodeSize: 64,24 Decision Data_Folder Title: Data Folder Definition: CurrentDataFolder() NodeLocation: 192,48,1 NodeSize: 80,24 Aliases: FormNode Fo1894835123 {!60005|Att_AttsToShow: Attribute TableCellDefault} FormNode Fo1894835123 Title: Data Folder Definition: 0 NodeLocation: 192,88,1 NodeSize: 80,16 NodeInfo: 1,,,0,,,,144,,,0,,,0 Original: Data_Folder Variable XDSL_File_Path Title: XDSL File Path Definition: Data_Folder & File_to_Read NodeLocation: 192,200,1 NodeSize: 64,24 Close File_Folder_Details Module Test_Functions Title: Test Functions Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Sep 16, 2024 8:13 AM NodeLocation: 456,208,1 NodeSize: 64,24 DiagState: 2,1123,16,598,668,17,10 Variable GetAllNodeIds Title: GetAllNodeIds Definition: Update;~ SMILE_GetAllNodeIds(SmileNetwork) NodeLocation: 96,208,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable ReadFile1 Title: ReadFile Definition: Update;~ SMILE_ReadFile(SmileNetwork, XDSL_File_Path); NodeLocation: 96,96,1 NodeSize: 80,24 Aliases: Alias Al1832834163 Variable UpdateBeliefs Title: UpdateBeliefs Definition: Update;~ SMILE_UpdateBeliefs(SmileNetwork) NodeLocation: 96,152,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetNodeName Title: GetNodeName Definition: Update;~ SMILE_GetNodeName(SmileNetwork, Select_Node_ID) NodeLocation: 96,264,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetNodeType Title: GetNodeType Definition: Update;~ SMILE_GetNodeType(SmileNetwork, Select_Node_ID) NodeLocation: 96,320,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable ClearAllEvidence Title: ClearAllEvidence Definition: Update;~ SMILE_ClearAllEviden(SmileNetwork) NodeLocation: 96,376,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable ClearAllTargets Title: ClearAllTargets Definition: Update;~ SMILE_ClearAllTarget(SmileNetwork) NodeLocation: 96,432,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable SetEvidence Title: SetEvidence Definition: Update;~ SMILE_SetEvidence(SmileNetwork, Select_Node_ID, GetOutcomeIds[@.dim1 = 1]) NodeLocation: 96,488,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetEvidence Title: GetEvidence Definition: Update;~ SMILE_GetEvidence(SmileNetwork, Select_Node_ID) NodeLocation: 96,544,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable SetTarget Title: SetTarget Definition: Update;~ SMILE_SetTarget(SmileNetwork, Select_Node_ID, True) NodeLocation: 272,208,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetOutcomeIds Title: GetOutcomeIds Definition: Update;~ SMILE_GetOutcomeIds(SmileNetwork, Select_Node_ID) NodeLocation: 272,264,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable IsValueValid Title: IsValueValid Definition: Update;~ SMILE_IsValueValid(SmileNetwork, Select_Node_ID) NodeLocation: 272,320,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable IsValueDiscretized Title: IsValueDiscretized Definition: Update;~ SMILE_IsValueDiscret(SmileNetwork, Select_Node_ID) NodeLocation: 272,376,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetNodeValue Title: GetNodeValue Definition: Update;~ SMILE_GetNodeValue(SmileNetwork, Select_Node_ID) NodeLocation: 272,432,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM NumberFormat: 2,F,4,2,0,0,4,1,$,0,"ABBREV",0,,,0,0,15,,0 Variable GetNodeMean Title: GetNodeMean Definition: Update;~ SMILE_GetNodeMean(SmileNetwork, Select_Node_ID) NodeLocation: 272,488,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable GetNodeStdDev Title: GetNodeStdDev Definition: Update;~ SMILE_GetNodeStdDev(SmileNetwork, Select_Node_ID) NodeLocation: 272,544,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable IsEvidence Title: IsEvidence Definition: Update;~ SMILE_IsEvidence(SmileNetwork, Select_Node_ID) NodeLocation: 272,40,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable ClearEvidence Title: ClearEvidence Definition: Update;~ SMILE_ClearEvidence(SmileNetwork, Select_Node_ID) NodeLocation: 272,96,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Variable IsTarget Title: IsTarget Definition: Update;~ SMILE_IsTarget(SmileNetwork, Select_Node_ID) NodeLocation: 272,152,1 NodeSize: 80,24 ValueState: 2,1186,261,665,438,,MIDM Alias Al991105971 Title: Refresh NodeLocation: 96,40,1 NodeSize: 80,24 Original: Refresh1 FormNode Fo1217598387 Title: File to Read Definition: 0 NodeLocation: 184,600,1 NodeSize: 168,16 NodeInfo: 1,,,,,,,197,,,,,,0 Original: File_to_Read FormNode Fo680727475 Title: Select Node ID Definition: 0 NodeLocation: 184,632,1 NodeSize: 168,16 NodeInfo: 1,,,,,,,197,,,,,,0 Original: Select_Node_ID Variable GetNodeType1 Title: GetNodeType(s) Definition: Update;~ SMILE_GetNodeType(SmileNetwork, Node_IDs) NodeLocation: 448,320,1 NodeSize: 80,24 ValueState: 2,1186,262,665,437,,MIDM Close Test_Functions Decision Select_Node_ID Title: Select Node ID Definition: Choice(Node_IDs,3,0) NodeLocation: 456,320,1 NodeSize: 64,24 Aliases: FormNode Fo680727475, FormNode Fo1876759475 Index Node_IDs Att_PrevIndexValue: [] Title: Node IDs Definition: Update;~ CopyIndex(GetAllNodeIds) NodeLocation: 456,264,1 NodeSize: 64,24 FormNode Fo1876759475 Title: Select Node ID Definition: 0 NodeLocation: 456,360,1 NodeSize: 64,16 NodeInfo: 1,,,0,,,,112,,,0,,,0 Original: Select_Node_ID {!50500|ArrowClass Arrow1222841267} {!50500|Att_HeadNode: Test_Functions} {!50500|Att_TailNode: SmileNetwork} {!50500|Att_ArrowWayPoints: [Null,Null,0,1]} {!50500|Att_ArrowProperties: 0} Alias Al1558385587 Title: XDSL Files NodeLocation: 312,264,1 NodeSize: 64,24 Original: XDSL_Files {!50500|ArrowClass Arrow1306727347} {!50500|Att_HeadNode: Test_Functions} {!50500|Att_TailNode: File_to_Read} {!50500|Att_ArrowWayPoints: [Null,Null,0,1]} {!50500|Att_ArrowProperties: 0} Alias Al1832834163 Title: ReadFile NodeLocation: 456,136,1 NodeSize: 64,24 Original: ReadFile1 Module Details Title: Details NodeLocation: 128,288,1 NodeSize: 64,24 NodeInfo: 1,0,0,,,,,,,,0 Module XML Title: XML Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Sep 16, 2024 8:13 AM NodeLocation: 112,48,1 NodeSize: 64,24 DiagState: 2,478,263,1191,428,17,10 Variable fileContent Title: file text Definition: ReadTextFile(File_to_Read) NodeLocation: 112,32,1 NodeSize: 64,24 ValueState: 2,404,410,1356,531,,MIDM Variable XmlDoc Title: xmlDoc Definition: Var d := COMCreateObject("Msxml2.DOMDocument.3.0");~ d->async := False;~ d->loadXML(max2);~ If (d->parseError->errorCode <> 0) Then Error(d->parseError->reason);~ d NodeLocation: 112,216,1 NodeSize: 64,24 ValueState: 2,132,138,416,303,,MIDM Variable nodeList Title: nodeList Definition: xmlDoc->selectNodes("//genie/node") NodeLocation: 272,96,1 NodeSize: 64,24 Variable InteriorColor Title: InteriorColor Definition: Local color := nodeList->item(node-1)->selectNodes("interior/@color")->item(0)->text;~ '0x' & color NodeLocation: 272,272,1 NodeSize: 64,24 WindState: 2,98,82,720,350 ValueState: 2,356,362,409,303,,MIDM Variable NodeName Title: NodeName Definition: nodeList->item(node-1)->selectNodes("name")->item(0)->text NodeLocation: 272,216,1 NodeSize: 64,24 ValueState: 2,356,362,409,303,,MIDM Variable NodeId Title: NodeId Definition: nodeList->item(node-1)->selectNodes("@id")->item(0)->text NodeLocation: 272,160,1 NodeSize: 64,24 ValueState: 2,1084,29,416,303,,MIDM Variable Position Title: Position Definition: nodeList->item(node-1)->selectNodes("position")->item(0)->text NodeLocation: 272,328,1 NodeSize: 64,24 ValueState: 2,164,170,416,303,,MIDM Index node Title: node Definition: 1..nodeList->length NodeLocation: 272,32,1 NodeSize: 64,24 Objective node_attributes1 Title: node attributes Definition: Table(attribute1)(NodeId,NodeName,InteriorColor,Position) NodeLocation: 432,248,1 NodeSize: 64,24 DefnState: 2,829,444,416,303,0,DFNM ValueState: 2,340,346,1059,483,,MIDM ReformVal: [attribute1,node] Index attribute1 Att_PrevIndexValue: ['ID','Name','Color','Position'] Title: attribute Definition: ['ID','Name','Color','Position'] NodeLocation: 432,96,1 NodeSize: 64,24 {!50500|ArrowClass Arrow1001687987} {!50500|Att_HeadNode: node_attributes1} {!50500|Att_TailNode: NodeId} {!50500|Att_ArrowProperties: 0} {!50500|ArrowClass Arrow129272755} {!50500|Att_HeadNode: node_attributes1} {!50500|Att_TailNode: Position} {!50500|Att_ArrowProperties: 0} {!50500|ArrowClass Arrow934579123} {!50500|Att_HeadNode: node_attributes1} {!50500|Att_TailNode: InteriorColor} {!50500|Att_ArrowProperties: 1} {!50500|ArrowClass Arrow1618250675} {!50500|Att_HeadNode: node_attributes1} {!50500|Att_TailNode: NodeName} {!50500|Att_ArrowProperties: 1} Library Label_Functions Title: Label Functions Author: Ben Filstrup~ Lumina Decision Systems Date: Fri, Apr 19, 2024 6:50 AM NodeLocation: 440,32,1 NodeSize: 64,24 DiagState: 2,81,132,1699,819,17,10 Function Create_Labels(node_ID, node_Name) Title: Create Labels Description: Creates a separate label node for every list item in the supplied index. Each label is defined as a Choice() so that if the index changes the label will automatically match that change. Definition: EvaluateScript(~ "Variable " & node_ID & "~ Title: " & node_Name~ ) NodeLocation: 1464,104,1 NodeSize: 64,24 WindState: 2,812,160,720,350 Button Call_Create_Labels Title: Call Create Labels NodeLocation: 1600,104,1 NodeSize: 64,24 WindState: 2,98,82,720,350 OnClick: Create_Labels(NodeId, NodeName) Function Color_Nodes(identifier, color) Title: Color Nodes Definition: EvaluateScript('NodeColor of ' & identifier & ' := ' & color) NodeLocation: 1464,160,1 NodeSize: 64,24 Button Call_Color_Nodes Title: Call Color Nodes NodeLocation: 1600,160,1 NodeSize: 64,24 OnClick: Color_Nodes(NodeId, InteriorColor) Function Move_Nodes(identifier, location1, location2) Title: Move Nodes Definition: EvaluateScript('NodeLocation of ' & identifier & ' := ' & location1 & ', ' & location2) NodeLocation: 1464,216,1 NodeSize: 64,24 WindState: 2,98,82,720,350 Button Call_Move_Nodes Title: Call Move Nodes NodeLocation: 1600,216,1 NodeSize: 64,24 OnClick: Move_Nodes(NodeId, coordinate_and_dimen[coordinates_dimensio = 'x_coord'], coordinate_and_dimen[coordinates_dimensio = 'y_coord']) Function Resize_Nodes(identifier, width, height) Title: Resize Nodes Definition: EvaluateScript('NodeSize of ' & identifier & ' := ' & NumberToText(ParseNumber(width)/5) & ', ' & NumberToText(ParseNumber(height)/5)) NodeLocation: 1464,392,1 NodeSize: 64,24 Button Call_Resize_Nodes Title: Call Resize Nodes NodeLocation: 1600,392,1 NodeSize: 64,24 OnClick: Resize_Nodes(NodeId, coordinate_and_dimen[coordinates_dimensio = 'width'], coordinate_and_dimen[coordinates_dimensio = 'height']) Text Te1335200691 Title: Doesn't seem to scale correctly NodeLocation: 1532,384,-1 NodeSize: 140,48 Function Assign_Definitions(identifier, defintion) Title: Assign Definitions Definition: EvaluateScript('DEFINITION of ' & identifier & ' := ' & defintion) NodeLocation: 1464,272,1 NodeSize: 64,24 Button Call_Assign_Definiti Title: Call Assign Definitions NodeLocation: 1600,272,1 NodeSize: 64,24 OnClick: Assign_Definitions(split_definition[Node_ID_Definition = 'ID'], split_definition[Node_ID_Definition = 'Definition']) Index Modules Title: Modules Definition: CopyIndex(#FindObjects(class: 'Module')) NodeLocation: 1520,480,1 NodeSize: 64,24 Decision Select_module Title: Select module Definition: Choice(Modules,2,0) NodeLocation: 1520,536,1 NodeSize: 64,24 Aliases: FormNode Fo2016155571 FormNode Fo2016155571 Title: Select module Definition: 0 NodeLocation: 1540,576,1 NodeSize: 100,16 Original: Select_module Button Bu1 NodeLocation: 1824,64,1 NodeSize: 64,24 OnClick: EvaluateScript("UseModule XML") Function Create_Functions(node_ID, params, def) Title: Create Functions Definition: EvaluateScript(~ "Function " & node_ID & "~ Title: " & node_ID & "~ Parameters: " & params & "~ Definition: " & def~ ) NodeLocation: 1464,48,1 NodeSize: 64,24 WindState: 2,98,83,720,349 Button Call_Create_Functions Title: Call Create Functions NodeLocation: 1600,48,1 NodeSize: 64,24 OnClick: IgnoreWarnings(~ Create_Functions(split_params[function_params_Definition = 'Function'], ~ split_params[function_params_Definition = 'Params'],~ split_params[function_params_Definition = 'Definition'])~ ) Module Functions1 Title: Functions Author: Ben Filstrup~ Lumina Decision Systems Date: Sun, Oct 27, 2024 10:51 PM NodeLocation: 1328,48,1 NodeSize: 64,24 Close Functions1 Close Label_Functions Variable coordinate_and_dimen Title: coordinate and dimension table Definition: Split_coordinates_di(Position) NodeLocation: 272,392,1 NodeSize: 64,32 ReformVal: [coordinates_dimensio,node] Index coordinates_dimensio Title: coordinates / dimensions Definition: ['x_coord','y_coord','height','width'] NodeLocation: 120,328,1 NodeSize: 64,24 Function Split_coordinates_di(text_to_split) Title: Split coordinates / dimensions Definition: SplitText(text_to_split, ' ', resultindex:coordinates_dimensio) NodeLocation: 120,392,1 NodeSize: 64,32 Variable cptNodes Title: cptNodes Definition: xmlDoc->selectNodes("//cpt") NodeLocation: 272,512,1 NodeSize: 64,24 Variable equationNodes Title: equationNodes Definition: xmlDoc->selectNodes("//equation") NodeLocation: 272,568,1 NodeSize: 64,24 Index RowCpt Title: RowCpt Definition: 1..cptNodes->length NodeLocation: 432,512,1 NodeSize: 64,24 Variable probabilities Title: probabilities Definition: cptNodes->item(RowCpt-1)->selectNodes("probabilities")->item(0)->text NodeLocation: 600,512,1 NodeSize: 64,24 Index RowEquation Title: RowEquation Definition: 1..equationNodes->length NodeLocation: 432,568,1 NodeSize: 64,24 Variable definition1 Title: definition Definition: equationNodes->item(RowEquation-1)->selectNodes("definition")->item(0)->text NodeLocation: 600,568,1 NodeSize: 64,24 ValueState: 2,647,270,653,310,,MIDM Variable split_definition Title: split definition Definition: SplitText(definition1, '=', resultindex: Node_ID_Definition) NodeLocation: 760,568,1 NodeSize: 64,24 ValueState: 2,74,270,1437,349,,MIDM Index Node_ID_Definition Title: Node ID / Definition Definition: ['ID','Definition'] NodeLocation: 760,624,1 NodeSize: 64,24 Decision Mappings Title: Mappings Definition: Table(GeNIe_Analytica,Syntax_Differences)(~ 'Choose',~ 'Choice') NodeLocation: 912,568,1 NodeSize: 64,24 Index GeNIe_Analytica Att_PrevIndexValue: ['GeNIe','Analytica'] Title: GeNIe / Analytica Definition: ['GeNIe','Analytica'] NodeLocation: 912,512,1 NodeSize: 64,24 Index Syntax_Differences Title: Syntax Differences Definition: [1] NodeLocation: 1056,512,1 NodeSize: 64,24 {!50500|ArrowClass Arrow1686088627} {!50500|Att_HeadNode: cptNodes} {!50500|Att_TailNode: XmlDoc} {!50500|Att_ArrowWayPoints: [Null,Null,0,1]} {!50500|Att_ArrowProperties: 0} {!50500|ArrowClass Arrow880782259} {!50500|Att_HeadNode: equationNodes} {!50500|Att_TailNode: XmlDoc} {!50500|Att_ArrowWayPoints: [Null,Null,0,1]} {!50500|Att_ArrowProperties: 0} Index node_id_list Att_PrevIndexValue: ['B31GMOD','depthLoss','LengthWallLoss','ThicknessWall','Yield_Strength','zdim','FlowStress','MzLTE50','MzGT50','Diameters_NPS','Diameter_Pipe'] Title: node id list Definition: CopyIndex(NodeId) NodeLocation: 432,160,1 NodeSize: 64,24 Variable functionsNodes Title: functionsNodes Definition: xmlDoc->selectNodes("//functions/function") NodeLocation: 272,456,1 NodeSize: 64,24 Index RowFunctions Title: RowFunctions Definition: 1..functionsNodes->length NodeLocation: 432,456,1 NodeSize: 64,24 Variable functions Title: functions Definition: functionsNodes->item(RowFunctions-1)->text NodeLocation: 600,456,1 NodeSize: 64,24 ValueState: 2,468,474,1381,434,,MIDM Variable split_functions Title: split functions Definition: SplitText(functions, '=', resultindex: function_and_params_Definition) NodeLocation: 760,456,1 NodeSize: 64,24 ValueState: 2,276,282,1437,349,,MIDM Index function_and_params_Definition Title: function+params / Definition Definition: ['Function(params)','Definition'] IndexVals: ['item 1'] NodeLocation: 760,400,1 NodeSize: 72,24 Variable split_params Title: split params Definition: Local funcParam := SplitText(split_functions[function_and_params_Definition = 'Function(params)'], '(', resultindex: function_params_Definition);~ funcParam[function_params_Definition = 'Params'] := '(' & funcParam[function_params_Definition = 'Params'];~ funcParam[function_params_Definition = 'Definition'] := split_functions[function_and_params_Definition = 'Definition'];~ funcParam NodeLocation: 912,456,1 NodeSize: 64,24 ValueState: 2,180,609,1651,318,,MIDM Index function_params_Definition Title: Function / Params / Definition Definition: ['Function','Params','Definition'] IndexVals: ['item 1'] NodeLocation: 912,400,1 NodeSize: 72,24 Module raw_text_translations Title: raw text translations Author: Ben Filstrup~ Lumina Decision Systems Date: Sun, Oct 27, 2024 10:51 PM NodeLocation: 112,96,1 NodeSize: 64,24 DiagState: 2,1013,137,944,500,17,10 Variable file_text_func_fix Title: file text func fix Definition: Local contents := fileContent;~ FOR x := func_id_list DO (~ contents := TextReplace(contents, x & '(', x & '_func' & '(', all: True);~ contents~ );~ contents NodeLocation: 272,48,1 NodeSize: 64,24 ValueState: 2,413,31,1360,600,,MIDM Variable func_id_list Title: func id list (no xml) Definition: Local funcs := FindInText('\\w*\(', fileContent, re: True, return: 'S', repeat: True);~ funcs := TextReplace(funcs, '', '', all: True);~ CopyIndex(TextReplace(funcs, '(', '', all: True)) NodeLocation: 112,48,1 NodeSize: 64,24 ValueState: 2,106,566,416,303,,MIDM Variable verify_test Title: verify test Definition: FindInText('B31GMOD', file_text_func_fix, return: 'S', repeat: True); NodeLocation: 544,48,1 NodeSize: 64,24 Variable IF_THEN_ELSE_fix Title: IF THEN ELSE fix Definition: Local contents := file_text_func_fix;~ FOR x := raw_Excel_IF_statments.Repeat DO (~ contents := TextReplace(contents, Excel_IF_statements[.Repeat = x], reformatted_IF_THEN_ELSE[.Repeat = x], all: True);~ contents~ );~ contents NodeLocation: 272,104,1 NodeSize: 64,24 ValueState: 2,324,330,1097,359,,MIDM Module Find_Prep_Excel_IFs Title: Find/Prep Excel IFs Author: Ben Filstrup~ Lumina Decision Systems Date: Sun, Oct 27, 2024 10:51 PM NodeLocation: 112,104,1 NodeSize: 64,24 DiagState: 2,0,0,944,500,17,10 Index IF_THEN_ELSE Title: IF THEN ELSE Definition: ['IF','THEN','ELSE'] NodeLocation: 416,80,1 NodeSize: 64,24 Variable Excel_IF_list_cleaned Title: Excel IF list cleaned Definition: Local IFs := raw_Excel_IF_statments;~ IFs := TextReplace(IFs, 'If(', '', all: True, caseInsensitive: True);~ TextReplace(IFs, ')<', '', all: True) NodeLocation: 264,136,1 NodeSize: 64,32 ValueState: 2,106,566,1278,315,,MIDM Variable split_IF_statements Title: split IF statements Definition: SplitText(Excel_IF_list_cleaned, ',', resultindex: IF_THEN_ELSE) NodeLocation: 416,136,1 NodeSize: 64,24 ValueState: 2,340,346,1466,296,,MIDM Variable reformatted_IF_THEN_ELSE Title: reformatted IF THEN ELSE Definition: 'IF ' & split_IF_statements[IF_THEN_ELSE = 'IF'] & ~ ' THEN ' & split_IF_statements[IF_THEN_ELSE = 'THEN'] & ~ ' ELSE ' & split_IF_statements[IF_THEN_ELSE = 'ELSE'] NodeLocation: 560,136,1 NodeSize: 64,24 ValueState: 2,195,430,1463,249,,MIDM Variable Excel_IF_statements Title: Excel IF statements (no xml) Definition: Local IFs := raw_Excel_IF_statments;~ TextReplace(IFs, '<', '', all: True) NodeLocation: 264,56,1 NodeSize: 64,32 Variable raw_Excel_IF_statments Title: raw Excel IF statments (no xml) Definition: FindInText('If\(.*?<', file_text_func_fix, caseInsensitive: True, re: True, return: 'S', repeat: True) NodeLocation: 112,96,1 NodeSize: 64,32 Close Find_Prep_Excel_IFs Variable max1 Title: max() fix 1 Definition: FindInText('Max\([^(]*\)', IF_THEN_ELSE_fix, caseInsensitive: True, re: True, return: 'S', repeat: True) NodeLocation: 112,160,1 NodeSize: 64,24 Variable max2 Title: max() fix 2 Definition: Local contents := IF_THEN_ELSE_fix;~ FOR x := max1.Repeat DO (~ contents := TextReplace(contents, max1[.Repeat = x], updated_max[.Repeat = x], all: True);~ contents~ );~ contents NodeLocation: 272,192,1 NodeSize: 64,24 ValueState: 2,324,330,1097,359,,MIDM Variable updated_max Title: updated max() text Definition: TextReplace(max1, "Max\(([^)]+)\)", "Max([\1])", all: True, caseInsensitive: True, re: True) NodeLocation: 112,216,1 NodeSize: 64,24 Function mu_sigma_to_median_gsdev(mu_or_sigma) Title: mu/sigma to median/gsdev Definition: Euler_s_Number^mu_or_sigma NodeLocation: 416,272,1 NodeSize: 64,24 Constant Euler_s_Number Title: Euler's Number Definition: 2.718281828459045 NodeLocation: 416,224,1 NodeSize: 64,24 Variable lognorm Title: lognorm() fix 1 Definition: FindInText('Lognormal\([^()]*\)', max2, caseInsensitive: True, re: True, return: 'S', repeat: True) NodeLocation: 112,272,1 NodeSize: 64,24 Variable lognorm1 Title: lognorm() fix 2 Definition: Local contents := max2;~ FOR x := lognorm.Repeat DO (~ contents := TextReplace(contents, lognorm[.Repeat = x], updated_lognorm[.Repeat = x], all: True);~ contents~ );~ contents NodeLocation: 272,296,1 NodeSize: 64,24 ValueState: 2,324,330,1097,359,,MIDM Variable updated_lognorm Title: updated lognorm() text Definition: Local data;~ LocalIndex temp := [1,2];~ FOR x := trim_to_params.Repeat DO (~ data := ParseNumber(SplitText(trim_to_params[.Repeat = x], ','{, resultindex: temp}));~ data := mu_sigma_to_median_gsdev(data);~ data := 'Lognormal(' & JoinText(data, separator: ',') & ')';~ data~ )~ NodeLocation: 112,392,1 NodeSize: 64,24 Variable trim_to_params Title: trim to params Definition: Local fixed_text := TextReplace(lognorm, 'Lognormal(', '', all: True, caseInsensitive: True);~ TextReplace(fixed_text, ')', '', all: True, caseInsensitive: True) NodeLocation: 112,336,1 NodeSize: 64,24 Variable XML_to_Analytica_modifications Title: XML to Analytica modifications Definition: lognorm1 NodeLocation: 584,416,1 NodeSize: 80,32 Aliases: Alias Al1958280307 Function Trim(x, lo, hi) Title: Trim Description: Trims the value of the argument x to a value in the interval . If x lo, the function returns lo, if x hi, the~ function returns hi, if lohi,hi,x)). For example, Trim(-0.5,0,1)=0,~ Trim(0.5,0,1)=0.5, Trim(1.5,0,1)=1 Definition: If x < lo Then~ lo~ Else if x > hi Then~ hi~ Else~ x NodeLocation: 624,232,1 NodeSize: 64,24 Close raw_text_translations Variable stateNodes Title: stateNodes Definition: xmlDoc->selectNodes("///state") NodeLocation: 272,624,1 NodeSize: 64,24 Index RowStates Title: RowStates Definition: 1..stateNodes->length NodeLocation: 432,624,1 NodeSize: 64,24 Alias Al1958280307 Title: XML to Analytica modifications NodeLocation: 112,152,1 NodeSize: 64,24 Original: XML_to_Analytica_modifications Module Under_development Title: Under development Author: Ben Filstrup~ Lumina Decision Systems Date: Tue, Nov 12, 2024 6:16 PM NodeLocation: 112,624,1 NodeSize: 64,24 Variable intervalNodes Title: intervalNodes Definition: xmlDoc->selectNodes("//equation[@id='"&select_node_ID1&"']/discretization/interval") NodeLocation: 296,168,1 NodeSize: 64,24 ValueState: 2,500,509,416,300,,MIDM Index RowInterval Title: RowInterval Definition: 1..intervalNodes->length NodeLocation: 448,168,1 NodeSize: 64,24 Index Label_Upper_Bound Att_PrevIndexValue: ['Label','Upper Bound'] Title: Label / Upper Bound Definition: ['Label','Upper Bound'] NodeLocation: 592,168,1 NodeSize: 64,24 Variable Label Title: Label Definition: intervalNodes->item(RowInterval-1)->selectNodes("@label")->item(0)->text NodeLocation: 736,136,1 NodeSize: 64,24 Variable Upper_Bound Title: Upper Bound Definition: intervalNodes->item(RowInterval-1)->selectNodes("@upper")->item(0)->text NodeLocation: 736,192,1 NodeSize: 64,24 Variable label_upper_bound_ta Title: label / upper bound table Definition: Table(Label_Upper_Bound)(Label,Upper_Bound) NodeLocation: 872,160,1 NodeSize: 64,24 Decision select_node_ID1 Title: select node ID Definition: Choice(node_id_list,10,0) NodeLocation: 304,240,1 NodeSize: 64,24 Aliases: FormNode Fo799872947 FormNode Fo799872947 Title: select node ID Definition: 0 NodeLocation: 320,280,1 NodeSize: 144,16 NodeInfo: 1,,,,,,,160,,,,,,0 Original: select_node_ID1 Variable Va1 Definition: "//equation[@id='"&select_node_ID1&"']/discretization/interval" NodeLocation: 600,280,1 NodeSize: 64,24 Variable Va2 Definition: For x := RowCpt Do (~ Var currentCpt := cptNodes->item(RowCpt-1);~ ~ { Check if current node contains elements }~ Var stateNodes := currentCpt->selectNodes("state");~ ~ If stateNodes->length > 0 Then~ { Extract id attributes if nodes are present }~ stateNodes->item(1..stateNodes->length - 1)->selectNodes("@id")->text~ ); NodeLocation: 672,48,1 NodeSize: 64,24 Index Diamter_NPS_Index Title: Diamter_NPS_Index Definition: ['D_2','D_4','D_6','D_8','D_10','D_12','D_16','D_18','D_20','D_24','D_30','D_36'] NodeLocation: 872,312,1 NodeSize: 88,24 Variable Va3 Definition: cptNodes->item(RowCpt-1)->selectNodes("state")->item(0)->text NodeLocation: 568,72,1 NodeSize: 64,24 Variable cptNode Title: cptNode Definition: xmlDoc->selectSingleNode("//cpt[@id='Diameters_NPS']") NodeLocation: 216,360,1 NodeSize: 64,24 Variable stateNodes1 Title: stateNodes Definition: cptNode->selectNodes("state") NodeLocation: 376,352,1 NodeSize: 64,24 Index Row Title: Row Definition: 1..stateNodes1->length; NodeLocation: 520,368,1 NodeSize: 64,24 Variable probabilitiesNode Title: probabilitiesNode Definition: cptNode->selectSingleNode("probabilities"); NodeLocation: 376,408,1 NodeSize: 72,24 Index StateIndex Title: StateIndex Definition: CopyIndex(stateNodes1->item(Row-1)->selectNodes("@id")->item(0)->text) NodeLocation: 672,368,1 NodeSize: 64,24 Variable probabilities1 Title: probabilities Definition: SplitText(probabilitiesNode->text, " ") NodeLocation: 800,424,1 NodeSize: 64,24 Variable Diameters_NPS_PH Title: Diameters_NPS Placeholder Definition: Array(StateIndex, probabilities1) NodeLocation: 1008,360,1 NodeSize: 72,24 Variable nodes Title: nodes Definition: xmlDoc->selectNodes("//cpt | //equation") NodeLocation: 216,528,1 NodeSize: 64,24 Index Row2 Title: Row2 Definition: 1..nodes->length NodeLocation: 360,528,1 NodeSize: 64,24 Variable Va10 Definition: LocalIndex StateIndex := [];~ Local probabilities := null;~ ~ For i := Row Do (~ Var currentNode := nodes->item(i-1);~ ~ { Check if the node contains both and elements }~ Var stateNodes := currentNode->selectNodes("state");~ Var probabilitiesNode := currentNode->selectSingleNode("probabilities");~ ~ If Size(stateNodes) > 0 And probabilitiesNode <> Null Then (~ { Collect the IDs of each state node into an array }~ Var currentStates := For j := 1..Size(stateNodes) Do (~ stateNodes->item(j-1)->selectSingleNode("@id")->text~ );~ ~ { Split the probabilities text into an array }~ Var currentProbabilities := SplitText(probabilitiesNode->text, " ");~ ~ { Assign to StateIndex and Probabilities }~ StateIndex := currentStates;~ probabilities := currentProbabilities;~ ~ { Display results as a table }~ Array(StateIndex, probabilities)~ )~ ); NodeLocation: 520,520,1 NodeSize: 64,24 Variable Diam_Def Title: Diam Def Definition: DEFINITION of Diameters_NPS_PH NodeLocation: 1016,424,1 NodeSize: 64,24 Button final_adjustments Title: final adjustments NodeLocation: 176,620,1 NodeSize: 64,28 OnClick: IF File_to_Read := 'B31G_2023.05.09.01.xdsl' THEN (~ DEFINITION of Diameters_NPS := 'Array(StateIndex, probabilities1)';~ DEFINITION of Diameter_Pipe := 'Array(Diamter_NPS_Index, [2,4,12,8,10,12,16,18,20,24,30,36])';~ DEFINITION of ThicknessWall := 'Array(Diamter_NPS_Index, [0.154,0.237,0.28,0.322,0.365,0.375,0.375,0.375,0.375,0.375,0.375,0.375])'~ ) ELSE ( 0 ) Index Files_with_Extra_Adjustments Title: Files with Extra Adjustments Definition: ['B31G_2023.05.09.01.xdsl'] NodeLocation: 112,448,1 NodeSize: 64,24 Close Under_development Close XML Module Background_info Title: Background info Author: Ben Filstrup~ Lumina Decision Systems Date: Mon, Oct 28, 2024 3:41 AM NodeLocation: 112,104,1 NodeSize: 64,24 DiagState: 2,25,9,1803,827,17,10 Text Te1971604595 Title: Important terms Description: discretization =~ converts continuous data into discrete intervals or categories~ ~ evidence (observations) =~ one of the basic operations on a probabilistic model. It amounts to adjusting the model to a new situation, one in which more information is available. It allows to query the system subsequently about the new, posterior probability distributions.~ ~ CPT = ~ Conditional probability tables. Obtained through discretization intervals.~ ~ target =~ Target nodes are always guaranteed to be updated by the inference algorithm. Other nodes, i.e., nodes that are not designated as targets, may be updated or not, depending on the internals of the algorithm used, but are not guaranteed to be updated. Focusing inference on the target nodes can reduce time and memory required to complete the calculation. When no targets are specified, SMILE assumes that all nodes are of interest to the user.~ ~ OutcomeIds = ~ Index elements NodeLocation: 904,200,-1 NodeSize: 368,192 Text Te581192819 Title: Node types Description: Chance nodes (CPT)~ Equation nodes (EQUATION)~ ~ There are more, most very similar to Analytica but only CPT/EQUATION show up in all models shared by Ernest. NodeLocation: 1528,68,-1 NodeSize: 248,60 Text Te1485982835 Title: Genie vs. SMILE Description: Genie~ - modeling environment~ - development environment for building graphical decision-theoretic models~ - Create Bayesian network models~ - Every action performed in GeNIe is translated to a~ call to SMILE~ ~ SMILE~ - SMILE is the backbone of Genie. (Genie's API)~ - (Structural Modeling, Inference, and Learning Engine)~ - SMILE is a C++ software library for performing Bayesian inference~ - library of classes for graphical probabilistic and decision-theoretic models.~ - Bayesian networks (belief networks), influence diagrams, dynamic Bayesian networks, and structural equation models~ - implemented in C++ in a platform independent fashion~ - Pyhton/Java/R/C# NodeLocation: 268,168,-1 NodeSize: 260,160 Text Te1200245875 Title: Link to all documentation Description: https://support.bayesfusion.com/docs/ NodeLocation: 164,396,-1 NodeSize: 156,60 Variable Library1 Title: Library Definition: 0 NodeLocation: 1544,168,1 NodeSize: 64,24 Variable COM_interactions Title: COM interactions Definition: Library1 NodeLocation: 1448,232,1 NodeSize: 64,24 Variable Importing_Genie_models Title: Importing Genie models Definition: Library1 NodeLocation: 1640,232,1 NodeSize: 64,24 Text Te1690979443 Description: - modifying actual Genie model (evidence, targets)~ - retrieving results post-modification~ - we implemented all functions provided by the BayesFusion provided wrapper~ - the functions given are a standard they don't like to deviate from for all programming languages NodeLocation: 1436,468,-1 NodeSize: 100,196 Text Te1445612659 Description: - imported from XDSL file (not COM)~ - capable of Analytica's forward inference~ - custom functions have been made to recreate node IDs/names/color/location~ - simple definitions are brought as is (multiplcation, division, etc.) with a layer of general syntax alterations (IF THEN ELSE, function separation)~ - definitions that use functions specific to Genie are brought in their discretized form as remapping every Genie function is not realistic NodeLocation: 1652,468,-1 NodeSize: 100,196 Close Background_info Module Quick_Delete_Logic Title: Quick Delete Logic Author: Ben Filstrup~ Lumina Decision Systems Date: Tue, Nov 12, 2024 6:16 PM NodeLocation: 112,160,1 NodeSize: 64,24 DiagState: 2,148,152,944,500,17,10 Index Safe_handles Title: Safe handles Definition: [Handle(File_to_Read),Handle(Import_selected_model),Handle(Library_Contents)] NodeLocation: 120,48,1 NodeSize: 64,24 MetaOnly: 0 Variable Classes_of_main_diagram Title: Classes of main diagram Definition: Update;~ Class(Contents_on_main_diagram) NodeLocation: 272,104,1 NodeSize: 64,24 Variable Flagged_classes Title: Flagged classes Definition: Update;~ Classes_of_main_diagram <> 'Button' AND Classes_of_main_diagram <> 'FormNode' AND Classes_of_main_diagram <> 'Module' NodeLocation: 424,104,1 NodeSize: 64,24 Variable Classes_to_exclude Title: Classes to exclude Definition: Update;~ Subset(Flagged_classes) NodeLocation: 568,104,1 NodeSize: 64,24 Variable Contents_on_main_diagram Title: Contents on main diagram Definition: Update;~ Contains Genie_Library NodeLocation: 112,104,1 NodeSize: 64,24 Alias Al1589443699 Title: Classes to delete NodeLocation: 720,108,1 NodeSize: 64,28 Original: Delete_imported_nodes Close Quick_Delete_Logic Close Details Close Library_Contents Button Delete_imported_nodes Title: Delete imported nodes NodeLocation: 232,384,1 NodeSize: 64,24 Aliases: Alias Al1589443699 OnClick: Refresh1;~ EvaluateScript('DELETE ' & Classes_to_exclude);~ Refresh1 Close Genie_Library