Mathematical Modeling with LPL : Explain and run a Model
Problem Statement
Modeling Description
||
Back to MatMod
model aGraph "Draw a Graph I"; set i,j "A set of nodes"; e{i,j} "A set of edges"; parameter X{i} "X-position of node"; Y{i} "Y-position of node";; i :=[ a b c d e ]; X{i} := [0 0 2 2 3]; Y{i} := [0 2 0 2 1]; e{i,j}:=[ (a,*) b c d, (b,*) a c d, (c,*) a b d e, (d,*) a b c e, (e,*) c d ]; drawgraph; --- model drawgraph; Draw.Scale(60,60); Draw.DefFont('Verdana',16); {e[i,j]|i
Problem Statement
Modeling Description
Back to model
The solution is as follows:
The LOG-File output of LPL is as follows: