Jump to content

Transportation problem: Difference between revisions

→‎{{header|REXX}}: flagged as needing improvement, this REXX program is receiving syntax errors from two different Classic REXX interpreters.
m (→‎{{header|REXX}}: remove debug remains)
(→‎{{header|REXX}}: flagged as needing improvement, this REXX program is receiving syntax errors from two different Classic REXX interpreters.)
Line 3,906:
 
=={{header|REXX}}==
 
{{improve|REXX| <br> Please use a Classic REXX such as Regina and re-run this program. <br><br>}}
&nbsp;
&nbsp;
Regina REXX (when invoked with no arguments, yields: <br><br>
125 +++ Do i=1 To numSources
7 +++ Call init
Error 41 running "c:\walter.1", line 125: Bad arithmetic conversion
Error 41.1: Non-numeric value ("") to left of arithmetic operation "unknown"
&nbsp;
&nbsp;
R4 REXX yields:
Invalid operator character sequence
Error detected at line 86 offset 10
Source line:
cost+=m.r.c*costx.r.c
^
&nbsp;
&nbsp;
There are several more messages of the (above) type.
&nbsp;
&nbsp;
Perhaps a display of the input file would help, or at least state the contents
of the input file are the same as shown for the programming solution for the
XXX language.
&nbsp;
&nbsp;
 
 
<lang rexx>/* REXX ***************************************************************
* Solve the Transportation Problem using Vogel's Approximation
Cookies help us deliver our services. By using our services, you agree to our use of cookies.