kendrick icon indicating copy to clipboard operation
kendrick copied to clipboard

Why N is not defined as a parameter when we define a new model ?

Open SergeStinckwich opened this issue 4 years ago • 9 comments

Why do we distinguish N from other parameters when we define a model ?

Example :

model := KEModel new.
	model population: (KEPopulation size: 5000).
	SEIRConcern := KEModelPart new.
	SEIRConcern attributes: {(#status -> #(#S #E #I #R))}.
	SEIRConcern addParameters: {#beta . #gamma . #mu . #sigma}.
	SEIRConcern addParameter: #lambda value: 'beta*I/N'.
	SEIRConcern
		addEquations:
			{'S:t=mu*N - lambda*S - mu*S' . 'E:t=lambda*S - sigma*E - mu*E' . 'I:t=sigma*E - gamma*I - mu*I' . 'R:t=gamma*I - mu*R'}.

N is not defined as a parameter like beta, gamma, ...

SergeStinckwich avatar Nov 06 '19 08:11 SergeStinckwich