Author(s): F. Bourgeois | Library: MATHLIB |
Submitter: K.S. Kölbig | Submitted: 15.02.1994 |
Language: Fortran | Revised: |
Subroutine subprogram ASSNDX solves the so-called
Assignment problem:
Given an matrix A of real numbers a(i,j), find either
assuming that a(i,0)=0, or
assuming that a(0,j)=0.
Structure:
SUBROUTINE subprogram
User Entry Names: ASSNDX
Files Referenced: Unit 6
Usage:
CALL ASSNDX(MODE,A,N,M,IDA,K,SMIN,IW,IDW)
Method:
The subprogram is based on the Algol procedure given in Ref. 3.
Error handling:
Error H301.1: or
.
A message is written on Unit 6, unless subroutine MTLSET
(N002) has been called.
Examples:
The following example illustrates a possible use of the subprogram.
A workshop has to carry out N jobs, each of
which can be performed on any of M (>N) available machines.
The cost of performing job I on machine J is A(I,J).
It is required to assign jobs to machines in such a way
as to minimize the total cost.
The solution is obtained by calling the subprogram
with and then assigning job I to machine
.
References: