{ From user CUJO, Model Hospital_cost at 28-Aug-2012 12:14:21 PM } SoftwareVersion 4.4.3 { System Variables with non-default values: } Time := Sequence(0,90) NumberWidth := 7 SampleSize := 150 DistribSize := 30 SampleType := 1 UseTable := 0 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!40300|Sys_DomainSelfIndex := 1} {!40400|Sys_AllNullTreatment := 1} {!40300|ProactivelyEvaluate Index: 1} {!-40203|Attribute CloudPlayerStyles} Attribute Reference Attribute Date_bough Attribute Prev_attribute AskAttribute Prev_attribute,Function,Yes AskAttribute CloudPlayerStyles,Module,Yes AskAttribute Prev_attribute,Module,Yes AskAttribute Script,Variable,Yes AskAttribute Prev_attribute,Variable,Yes Model Hospital_cost Title: Markov Chain Description: This model evaluates the number of hospital patients in a variety of locations (states), changing over 90 units of time. Evaluate the node "Patient numbers over time" and view it as a graph.~ ~ The objective node, "Total cost" is a single number based on the assumption that costs are fixed over the 90 units of time. Author: korsan Date: Fri, Mar 17, 1995 5:52 PM SaveAuthor: CUJO SaveDate: Tue, Aug 28, 2012 12:14 PM DefaultSize: 44,20 DiagState: 2,78,52,826,536,1 NodeColor: -1,-6554,-19660 DiagramColor: 32348,-9825,-8739 FontStyle: Arial, 13 FileInfo: 0,Model Hospital_cost,2,2,0,0,C:\Users\CUJO\Desktop\work\bug reports\12979.ana PageSetup: (00030000004800480000000002D80228FFE1FFE202F902460347052803FC00020000004800480000000002D80228000100000064000000010003030300000001270F000100010000000000000000000000006808001901900000000000000000000000000000000000000000000000000000000000000000) {!40400|CloudPlayerStyles: show_outline:no~ show_tabs:no~ show_parent_diagram_button:no~ Navigation_style:top_tabs~ FrameNode:Te1} {!40204-40399|AWP_Attrib:show_outline:no~ show_tabs:no~ show_parent_diagram_button:no~ Navigation_style:top_tabs~ FrameNode:Te1} {!40400|Att_clearTypeFonts: 1} Index Loc {!40000|Att_PrevIndexValue: ['Home','Ward','ICU','Morgue']} Title: Location Description: Locations of patients. Definition: ['Home','Ward','ICU','Morgue'] NodeLocation: 64,176,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 WindState: 1,432,503 NodeColor: -8739,-8739,-8739 Index Next_loc {!40000|Att_PrevIndexValue: ['Home','Ward','ICU','Morgue']} Title: Next location Description: Locations at next time step. (The identical set of locations~ as before.) Definition: Slice(Loc, Loc, Sequence(1,Size(Loc))) NodeLocation: 64,224,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 WindState: 1,475,42 DefnState: 1,58,360,368,158,0,MIDM ValueState: 1,102,128,368,158,0,MIDM NodeColor: -8739,-8739,-8739 ReformDef: [Self,Loc] ReformVal: [Loc,Self] NumberFormat: 1,%,6,0,0,0 Domain: ['Home','Ward','ICU','Morgue'] {!40300|DomainExpr: Discrete('Home','Ward','ICU','Morgue',type:['text'])} Chance Transition_prob Title: Transition probabilities Description: The probability that a patient in each location will be at the next location, based on the current location. Definition: Table(Loc,Next_loc)(~ 0.95,0.03,0.01,0.01,~ 0.2,0.63,0.15,0.03,~ 0.05,0.25,0.6,0.1,~ 0,0,0,1~ ) NodeLocation: 56,96,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 NodeColor: 20492,-6282,-1 ReformDef: [Next_loc,Loc] Objective Loc_prob Title: Patient numbers over time Description: The number of patients at each location over time. Definition: Dynamic(Init_loc, Array(Loc, Sum(Self[Time-1]*Transition_prob,Loc))) NodeLocation: 192,40,1 NodeSize: 48,32 NodeInfo: 1,1,1,1,1,1,0 WindState: 1,50,156 ValueState: 2,38,76,502,390,0,MIDM NodeColor: -1,-26215,-26215 GraphSetup: Graphtool:0~ Distresol:10~ Diststeps:1~ Cdfresol:5~ Cdfsteps:1~ Symbolsize:6~ Linestyle:1~ Frame:1~ Grid:1~ Ticks:1~ Mesh:1~ Scales:1~ Rotation:0~ Tilt:0~ Depth:70~ Frameauto:1~ Showkey:1~ Xminimum:0~ Xmaximum:100~ Yminimum:0~ Ymaximum:400~ Zminimum:1~ Zmaximum:4~ Xintervals:0~ Yintervals:0~ Includexzero:0~ Includeyzero:0~ Includezzero:0~ Statsselect:[1,1,1,1,1,0,0,0]~ Probindex:[5m,2.5m,5m,7.5m,9.5m]~ ReformVal: [Time,Loc] Variable Init_loc Title: Initial patient numbers Description: The number of patients in each location at the starting time.~ ~ We assume there are 100 patients at the starting location. Definition: Table(Loc)(~ 100,100,100,100) NodeLocation: 56,40,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 NodeColor: 4658,-14548,-1 Variable Cost_by_loc Title: Daily cost by location Units: $/day Description: The average daily cost of keeping a patient, by location. Definition: Table(Loc)(~ 0,200,1000,10) NodeLocation: 376,40,0 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 WindState: 1,497,499 DefnState: 1,104,114,374,180,0,MIDM NodeColor: 4658,-14548,-1 NumberFormat: 1,I,6,2,0,1 Variable Cost_by_day Title: Cost by day Units: $/day Description: The cost per day of patients at each location, over time. Definition: (Loc_prob*Cost_by_loc) NodeLocation: 280,104,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 ValueState: 1,49,54,579,365,1,MIDM NodeColor: 4658,-14548,-1 ReformVal: [Time,Loc] NumberFormat: 1,I,6,2,1,1 Variable Total_cost_by_loc Title: Total cost by location Units: $ Description: The total cost summed over the time period, by location. Definition: Sum(Cost_by_day,Time) NodeLocation: 280,168 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 ValueState: 1,183,144,370,172,1,MIDM NodeColor: 4658,-14548,-1 NumberFormat: 1,I,6,2,1,1 Objective Total_cost Title: Total cost Units: $ Description: The total cost summed over all locations and times. Definition: Sum(Total_cost_by_loc,Loc) NodeLocation: 280,240,1 NodeSize: 48,24 NodeInfo: 1,1,1,1,1,1,0 ValueState: 1,88,98,416,303,0,MIDM NodeColor: -1,-26215,-26215 NumberFormat: 1,D,2,2,0,0 Text Te1 NodeLocation: 590,282,-1 NodeSize: 206,194 Close Hospital_cost