Transportation problem: Difference between revisions
m
→{{header|Racket}}: stub added
(fix link) |
m (→{{header|Racket}}: stub added) |
||
Line 1,949:
l1: d:=ReadKey;
END.</lang>
=={{header|Racket}}==
{{trans|Java}} (I understand the letters in Java!)
<lang racket>
</lang>
{{out}}
Output of: <code>raco test Transportation-problem.rkt</code>:
<pre>raco test: (submod "transportation-problem.rkt" test)
Optimal solutions for: input1
20 - 5
- 30 5
Total costs: 180
Optimal solutions for: input2
- - - 12
20 - 10 10
- 30 - 3
Total costs: 130
Optimal solutions for: input3
- - - 14
- 9 - 1
10 - 5 -
- 5 7 -
- 1 - -
Total costs: 1000
3 tests passed
</pre>
|