# Location Programming

3 messages
Open this post in threaded view
|
Report Content as Inappropriate

## Location Programming

 Good Day,   I am stuck with creating a program that maps distance travelled and am severely out of practice on octave, this is not like riding a bike. To summarise what is required, I need a program that will calculate how far a warehouse picker walks with each order between each item.   My idea is that the octave program pulls a bin location from the WMS, this is in alpha-numeric form (AE-036-13 for example). This location is then referenced to a position in a matrix (Eg AE-036-13 is in matrix location A(1,3)). The matrix is configured to have rows and columns equivalent to the number of rows and columns in the warehouse. The program then pulls the next location and works out the difference between the locations using the indexes. From there I can include the distance factor.   Really rough example:   m= 10; n= 8;   A = zeros(m,n); %Zero Matrix Created   B = abs([1,1]- [3,3])  %Manual Matrix Locations Entered   xdis = B(1,1) ydis = B(1,2)   Travel = xdis + ydis   What I can’t do currently or understand is: Why the formula for B does not need any reference to matrix A? How to save an alpha-numeric code into a matrix location (There will be multiple codes per matrix location as well) How to get the program to “spit out” the matrix location after entering the alpha-numeric code. How to get the matrix location values to automatically transfer into the equation for B.   Regards   Nicholas Ablett Imperial Auto Parts | Imperial  | South Africa   Mobile: +27 84 552-2024  | Office: +27 11 573 8554 | email: [hidden email] Site: www.imperial.co.za  | Business Address: Unit 2A, Khulani Business Park, Cnr Kelly and Yaldwyn, Jet park, Boksburg, South Africa | Postal Address:  PO Box 3013, Edenvale, 1610, South Africa  |   _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|
Report Content as Inappropriate