Jump to content

Transportation problem: Difference between revisions

m
→‎{{header|REXX}}: another fix - good to have testers out there :-(
(→‎{{header|REXX}}: flagged as needing improvement, REXX program gets a syntax error.)
m (→‎{{header|REXX}}: another fix - good to have testers out there :-()
Line 3,910:
 
=={{header|REXX}}==
 
{{improve|REXX|REXX program gets a syntax error.}}
 
Invalid operator character sequence
Error detected at line 117
Source line:
source.r-=sh
^
 
 
<lang rexx>/* REXX ***************************************************************
* Solve the Transportation Problem using Vogel's Approximation
Line 4,027 ⟶ 4,017:
Parse Arg r c
sh=min(source.r,demand.c)
source.r-=source.r-sh
demand.c-=demand.c-sh
m.r.c=sh
If source.r=0 Then Do
2,295

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.