Download presentation
Presentation is loading. Please wait.
1
Tutorial for PopModel1.5 2016 Sep
2
In the folder of PopModel 1.5 Program
*.DIE is for Data file *.PMB is for STAGE MODEL File *.PMC is for POPULATION MODEL File
3
1. Instruction of PopModel 1.5
1) Window Structure
8
<Practice 1 : Managing files in FILE TREE>
1) Load Files and see the content in working window 2) Delete File and Reload 3) Copy & Paste 4) Save and Save As
9
2) DATA Window Each Data set is composed of Data name and values
10
◯ Data View Option dialogue box
11
◯ Import or Export data via Clip board
- USER can copy the DATA and paste it in other program and vice versa
12
<Practice 2 : Managing Data>
1) Change the display mode : text mode <-> graph mode 2) exercise the view option - check or uncheck the Data set - convert digit into exponential form - round up under digit 3) Copy & Paste via clip board 4) Save (as) , load, Reload, Delete, Remove,
13
◯ Loading data set for model simulation
- X or R Data : STAGE MODEL, POPULATION MODEL - Initial Value for S0 var. : POPULATION MODEL
14
◯ Select a Data dialogue box
15
<Practice 3 : management of Data set in X or R Data>
1) Load a data set X, R variable and Delete them 2) Check the data set in X or R Data by clicking 3) Edit the loaded data - change Name, Range, one of value in specific position - clear the data 4) make a new data set - 10 in 150 pos., 25 in 200 pos. 40 in 250 pos
16
2. STAGE MODLE
17
<Necessary Item>
1. Name 2. Cal. Range 4. Cal. Method 6. Main Function
20
‘Y=‘ is not necessary
25
<Practice 4 : Calculator>
* Removed loaded Data set in X or R if it is. 1) try a formula below one by one - Y= 1+2 - Y= e^2 - Y= IF (1>2, SQRT(4), lOG(3)) …… 2) try a multi main function F1= SQRT(4) F2 = Log (5) F3 = F1+ F2 Y= IF ( F1 > F2 , F1, 0) Y1 = IF ( F1 < F2, F2 , 1) Y2 = F1*F2+F3 Y3 = Y0 +Y1 +Y2
26
* Load data set on X0 variable
3) Input a multi main function below F1= SQRT(x) F2 = Log (x) F3 = F1+ F2 Y= IF ( F1 > F2 , F1, 0) Y1 = IF ( F1 < F2, F2 , 1) Y2 = F1*F2+F3 Y3 = Y0 +Y1 +Y2 and change the value of “Now =“ eg Now =100
27
4) Exercise Array variable and Functions
Y= X Y1= X(N) Y2= X(N-1) Y3= X(N+1) Y= X Y1= X(I) Y2= X(I-1) Y3= X(I+1) Y= X Y1= X(T) Y2= X(T-1) Y3= X(T+1) < Array function> Y= SUM(X, I:N) Y1= MEAN(X, I:N) Y2= COUNT(X, I:N) Y3= MAX(X, I:N) Y4= MIN(X, I:N) Y= SUM(X, I+1:N-1) Y1= SUM(X, I:N, X>10) Y2= COUNT(X, I:N, X>10) Y3= MEAN(X, I:N, X>10)
28
<Practice 5 : ARRAY >
* Change the Cal. Method into Array and check result 1) try a formula below in various Cal. Range (eg. 5~100) - Y= 1+2 - Y= e^2 - Y= IF (1>2, SQRT(4), lOG(3)) …… 2) try a multi main function in various Cal. Range F1= SQRT(4) F2 = Log (5) F3 = F1+ F2 Y= IF ( F1 > F2 , F1, 0) Y1 = IF ( F1 < F2, F2 , 1) Y2 = F1*F2+F3 Y3 = Y0 +Y1 +Y2
29
3) Check the result of a multi main function
in various Cal. Range 1~100 after loading a data set on X0 F1= SQRT(x) F2 = Log (x) F3 = F1+ F2 Y= IF ( F1 > F2 , F1, 0) Y1 = IF ( F1 < F2, F2 , 1) Y2 = F1*F2+F3 Y3 = Y0 +Y1 +Y2
30
4) Exercise Array variable and Functions
Y= X Y1= X(N) Y2= X(N-1) Y3= X(N+1) Y= X Y1= X(I) Y2= X(I-1) Y3= X(I+1) Y= X Y1= X(T) Y2= X(T-1) Y3= X(T+1) < Array function> Y= SUM(X, I:N) Y1= MEAN(X, I:N) Y2= COUNT(X, I:N) Y3= MAX(X, I:N) Y4= MIN(X, I:N) Y= SUM(X, I+1:N-1) Y1= SUM(X, I:N, X>10) Y2= COUNT(X, I:N, X>10) Y3= MEAN(X, I:N, X>10)
31
<Practice 5 : ARRAY with Start condition >
32
1) Make a R0 data by editing
- Pos 10 value 10 - Pos 20 value 15 - Pos 30 value 20 - Pos 40 value 15 - Pos 50 value 10 2) Input a condition formula in Start if = R0 > 0 * All the condition formula used in Start if or End if has no ‘Y=‘ * The result should be 0 or 1, So USER had better use comparative operator
33
3) Check the results with the Main Function below
< Array variable> Y= X Y1= X(N) Y2= X(N-1) Y3= X(N+1) Y= X Y1= X(I) Y2= X(I-1) Y3= X(I+1) Y= X Y1= X(T) Y2= X(T-1) Y3= X(T+1) < Array function> Y= SUM(X, I:N) Y1= MEAN(X, I:N) Y2= COUNT(X, I:N) Y3= MAX(X, I:N) Y4= MIN(X, I:N) Y= SUM(X, I+1:N-1) Y1= SUM(X, I:N, X>10) Y2= COUNT(X, I:N, X>10) Y3= MEAN(X, I:N, X>10)
34
<Practice 6 : TRANSITION >
35
Result
36
3) Check the results with the Main Function below
< Array variable> Y= X Y1= X(N) Y2= X(N-1) Y3= X(N+1) Y= X Y1= X(I) Y2= X(I-1) Y3= X(I+1) Y= X Y1= X(T) Y2= X(T-1) Y3= X(T+1) < Array function> Y= SUM(X, I:N) Y1= MEAN(X, I:N) Y2= COUNT(X, I:N) Y3= MAX(X, I:N) Y4= MIN(X, I:N) Y= SUM(X, I+1:N-1) Y1= SUM(X, I:N, X>10) Y2= COUNT(X, I:N, X>10) Y3= MEAN(X, I:N, X>10)
37
<Practice 7 : Component function >
1) Load the functions onto Component function C0 : Y= X^2 C1 : Y=log(X) 2) Set the method as ARRAY (without Start if) and check the result of the Main function F1=X^2 F2 =LOG(X) Y=SUM( F1, I:N) Y1= SUM (C0, I:N) Y2=SUM( F2, I:N) Y3= SUM (C1, I:N) Y=X^2 Y1=C0 Y2=LOG(X) Y3=C1
38
<Practice 8 : Substitution in C variable >
1) Check the result of Main function Y= C0( X= 2) Y1=C1 ( X= C0) Y2= C0( X=SUM(X, I:N) ) Y3=C1 (X=SUM(C0, I:N)) 2) Load more different data on X1, X2 Check the result below C0 : Y= X^2+ X1+X2 Main Function : Y= C0(X2=2) Y1= C0(X=X1, X1=X2)
39
Insect Model Application : Degree-Day
Question 1. if the eggs are laid in 100th day, when the larva can be hatched? - Dev. Zero : 10.4 - Thermal constant : 88.7 Cal. Range : START =100 Main Function : F1= IF (X > P0, X-P0, 0) P0= 10.4 Y= SUM (F1, I: N) P1 = 88.7 Y1= if(Y>P1, 1, 0)
40
Question 2. How many time does this species occur?
(No. Generation per year) - Dev. Zero : 12.1 - Thermal constant : 533.8 Cal. Range : START =0 Main Function : F1= IF (X > P0, X-P0, 0) P0= 12.1 Y= SUM (F1, I: N) P1 = 533.8 Y1= INT (Y/P1)
41
Insect Model Application : Non-linear model
Eggs day 1 2 3 4 5 6 7 8 9 Dev. Rate nodel Dev. distribution
42
- Occurrence of the hatched larva
No. hatched larva 100 eggs Today ( N) data 1 2 3 4 5 6 7 8 9 N-1 of Px N of Px - Main function Y=100*(F1-F2) F1=C1(X=SUM(C0,I:N)) F2=C1(X=SUM(C0,I:N-1)) - Component functions
43
- Main function Y=100*(F1-F2) Y1=100*(1-F1) F1=C1(X=SUM(C0,I:N))
- The remained egg populaiton Remained eggs Hatched larva 100 eggs Today ( N) date 1 2 3 4 5 6 7 8 9 - Main function Y=100*(F1-F2) Y1=100*(1-F1) F1=C1(X=SUM(C0,I:N)) F2=C1(X=SUM(C0,I:N-1))
44
Learn from the example file
Eg. egg.PMB - R0 data is the egg laid date and density - “ Start if = R0 >0” and role of R0(I) in Main Function If you add addition model like mortality, then Y1 formula should be wholly modified according to your logic.
45
<Practice 9 : G var >
Eg. 1. Make new data for density - Y= R0* <= adult desity * sex ratio - Y= INT(R0*0.51) <= No. Female Y1= R0-Y <= No. male - Y=S0+S1 <= In Population model, Initial density + output of previous stage Eg. 2. make a Data in advance G var. : Y =if(X> 10.2, X-10.2, 0) Main Function : Y=Sum(G0, I:N) Y1= if(Y> 88.5, 1, 0)
46
<Practice 10 : Vertically or horizontally
The case when horizontally method can be used is that USER need the result of main function (Y) over N position * Compare the result between them - Y=X - Y1=Y(N-1) - Y2= Y(N+1)
47
2. POPULATION MODEL - A Group of STAGE MODELs with linkage
Step1. make a linkage Step2. Fill the content
48
1) Viewer This is the place loading Data for S0
49
Y=S0+S1 is a basic formula in G Var.
50
2) Builder
52
<Practice 1 : Build and selection >
Open PRE/POST RUN and Remove it Build a various Stage linkage in MAIN Delete a Stage Initiate Population model Load PMB File in a Stage Copy & Paste Use New to clean the model info, in a Stage
53
<Practice 2 : Start, Link, and S var Reference>
Change Start Stage Link to a Stage Main and unlink it 3) Add a Target Stage into S var. reference 4) Remove a Target Stage from S var. reference 5) Initiate S var. reference
55
<Practice 3 : Simulation with S var >
- Make a Stage linkage (See right) and make 3 stage refer 1 stage with S2 variable - Cal. Method : ARRAY - 1 : Main function Y=X Y1=X+1 - 2: Main function Y=S1 Y1=S1Y1 - 3: Main function Y=S1+S2 Y1=S1Y1+S2Y1
56
<Practice 4 : Simulate example files and analyze it>
1) Load PMC file in Example 2) Load X0 Data 3) Load Initial Data in START Stage 4) change Start Stage and simulate it 5) Multi-Stage simulation - at 100th day, egg, 20 large, 50 pupae, 4 adult
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.