{ From user nieman, Model Hospital_cost at Mon, Jun 21, 1999 5:53 PM} Softwareversion 1.2.29 { System Variables with non-default values: } Numberwidth := 7 Samplesize := 150 Distribsize := 30 Sampletype := 1 Usetable := 0 Typechecking := 1 Checking := 1 Saveoptions := 2 Savevalues := 0 Webhelper := -1 { Non-default Time SysVar value: } Time := Sequence(0,90) Title Time: Time Attribute Reference Attribute Date_bough 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. Eva~~ luate the node "Patient numbers over time" and view it as a graph.~ ~ The objective node, "Total cost" is a single number based on the assu~~ mption that costs are fixed over the 90 units of time. Author: korsan Date: Fri, Mar 17, 1995 5:52 PM Saveauthor: nieman Savedate: Mon, Jun 21, 1999 5:53 PM Defaultsize: 44,20 Diagstate: 1,78,52,466,285,1 Nodecolor: -1,-6554,-19660 Diagramcolor: 32348,-9825,-8739 Fontstyle: Arial, 13 Fileinfo: 0,Model Hospital_cost,1,2,0,C:\ANALYTICA\Example Models\Dyn~~ amic Models\Markov Chain.ana Pagesetup: (00030000004800480000000002D80228FFE1FFE202F90246034705280~~ 3FC00020000004800480000000002D802280001000000640000000100030303000000~~ 01270F000100010000000000000000000000006808001901900000000000000000000~~ 000000000000000000000000000000000000000000000) Index Loc Title: Location Description: Locations of patients. Definition: ['Home','Ward','ICU','Morgue'] Nodelocation: 64,176,0 Nodesize: 44,20 Nodeinfo: 1,1,1,1,1,1,0 Windstate: 1,432,503 Nodecolor: -8739,-8739,-8739 Index Next_loc Title: Next location Description: Locations at next time step. (The identical set of locat~~ ions as before.) Definition: Slice(Loc, Loc, Sequence(1,Size(Loc))) Nodelocation: 64,224,1 Nodesize: 44,20 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'] 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 Nodesize: 44,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,28 Nodeinfo: 1,1,1,1,1,1,0 Windstate: 1,50,156 Valuestate: 1,38,76,502,390,1,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 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 Nodesize: 44,20 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 Nodesize: 44,20 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 Close Hospital_cost