Mathematical Modeling with LPL : Explain and run a Model
Problem Statement
Modeling Description
||
Back to MatMod
model AgeOfPeter "How old is Peter"; variable x; y; constraint A: y = 3*x; B: y+10 = 2*(x+10); solve; Write('The age of Peter is: %d\n', x); end
Problem Statement
Modeling Description
Back to model
The solution is as follows:
The LOG-File output of LPL is as follows: