4. Effluent (Drains) in which it is provided annual downcast drains on fields (for fertilizer of pastures). Also sale of drains for the manufacture of mineral fertilizers is possible.
DYNAMIC BEHAVIOUR
WHENEVER T >= TNext DO
TNext^:= TNext + 1[d];
IF ((sun > 100[kJ/m^2]) AND (sun < 110[kJ/m^2])) AND (FLAG = TRUE)
AND (Dung >= 10000) DO
A^:= 0;
FLAG^:= FALSE;
END
END
WHENEVER (T >= TNext) AND (FLAG = FALSE) DO
IF (sun > 50[kJ/m^2]) AND (sun < 60[kJ/m^2]) DO
FLAG^:= TRUE;
END
END
END OF Effluent
5. Profit, expenses (profit, expenses), including an economic part of the model. Unfortunately, because of insufficient amount of the information it is designed only in the theory. But further, at the profound studying of the model, it will be created and, I hope, it will work on a level with other components of the model.
MOBILE COMPONENT Animal
DECLARATION OF ELEMENTS
STATE VARIABLES
DISCRETE
Age (INTEGER):= 0,
Weight (REAL):= 0,
Status (LOGICAL):= FALSE, # Fecundation / not Fecundation
Stelnost (INTEGER):= 0, # Duration of the pregnancy
Kol_voOtelov (INTEGER):= 0, # Number of calves
MilkYield (REAL):= 0,
Manure (REAL):= 0
END OF Animal
The results of modelling with an initial livestock of the cattle - 30 heifers, 10 calves (all animals are about one year):
On the given schedules dynamics of transition of animals from one age groups in others is displayed.
We can see, that at achievement of the certain age heifers (a red line) are divided into two categories: milk cows (a green line) and cows (a blue line). Cows fatten the necessary weight, and then they are slaughtered. Through the certain time interval Milk cows give a gain of the herd and start to be milked.
We can see, that at achievement of the certain age three calves (a red line) become bulls (a blue line), the others remain calves, until they fatten the necessary weight. As soon as it occurs, they are slaughtered.