{ Analytica Model Entry_of_symmetric_m, encoding="UTF-8" } SoftwareVersion 6.0.10 { System Variables with non-default values: } SampleSize := 1000 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!-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} Model Entry_of_symmetric_m Title: Entry of symmetric matrix example Description: Is there a way to set up an edit table of a 2-D matrix so that it won't allow you to enter a non-symmetric matrix? This example shows how. Author: Lonnie Chrisman~ Lumina Decision Systems Date: Fri, Oct 22, 2021 1:13 PM DiagState: 2,0,0,944,537,17 FontStyle: Arial,15 FileInfo: 0,Model Entry_of_symmetric_m,2,2,0,0,W:\TestModels\Entry of symmetric matrix example.ana Index I Title: I Definition: 1..3 NodeLocation: 168,72,1 NodeSize: 64,24 Index J Title: J Definition: copyIndex(I) NodeLocation: 168,136,1 NodeSize: 64,24 Variable Matrix_storage Title: Matrix storage Description: This stores the elements of the symmetric matrix, as a triangular matrix. Definition: Table(I,J)(~ 1,2,5,~ Null,3,4,~ Null,Null,0) NodeLocation: 336,72,1 NodeSize: 64,24 WindState: 2,298,157,720,350 DefnState: 2,924,328,416,303,0,DFNM Variable Symmetric_matrix Title: Symmetric matrix Definition: SubTable( If J>=I then Matrix_storage else Transpose(Matrix_storage,I,J) ) NodeLocation: 336,136,1 NodeSize: 64,24 WindState: 2,441,76,720,350 DefnState: 2,777,112,416,303,0,DFNM Aliases: FormNode Fo602695491 AcpStyles: show_index_menus:yes {!40300|ProactivelyEvaluate: 16} {!60005|Att_AttsToShow: Attribute AcpStyles} FormNode Fo602695491 Title: Symmetric matrix Definition: 0 NodeLocation: 260,208,1 NodeSize: 164,24 Original: Symmetric_matrix {!40300|ProactivelyEvaluate: 16} Close Entry_of_symmetric_m