|
Optimization: principles and algorithms, by Michel Bierlaire
|
Solve a transhipment problem with bound constraints. More...
Go to the source code of this file.
Functions | |
| function | transhipment (in adj, in cost, in lb, in ub, in supply, in useGlpk) |
| Solve the transhipment problem with bound constraints. More... | |
Solve a transhipment problem with bound constraints.
Definition in file transhipment.m.
| function transhipment | ( | in | adj, |
| in | cost, | ||
| in | lb, | ||
| in | ub, | ||
| in | supply, | ||
| in | useGlpk | ||
| ) |
Solve the transhipment problem with bound constraints.
| adj | the adjacency matrix of the network (dim m x m) |
| cost | the cost vector (dim n) |
| lb | the vector of lower bounds (dim n) |
| ub | the vector of upper bounds (dim n) |
| supply | the vector of supply (dim m) |
| useGlpk | if not 0, solve the linear problem using the glpk routine from Octave. (Default: 0) |