Vogel's approximation method: Difference between revisions

→‎{{header|D}}: immutable->auto so it would run on tio, replaced output
m (→‎{{header|REXX}}: fix reference)
(→‎{{header|D}}: immutable->auto so it would run on tio, replaced output)
Line 402:
supply = [W: 50, X: 60, Y: 50, Z: 50];
 
immutableauto cols = demand.keys.sort().release;
auto res = costs.byKey.zip((int[K]).init.repeat).assocArray;
K[][K] g;
Line 469:
}</lang>
{{out}}
<pre>
<pre> A B C D E
A B C D E
W 50
X 30 20 10
X 20 40
Y 20 30
Y 30 20
Z 50
Z 30 20
W 50
 
Total Cost = 3130</pre>3100
</pre>
 
=={{header|Go}}==
7,820

edits