Documentation of objvrp
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
[ObjVal, VRPData, VRPResult] = objvrp(Routes, VRPData)
OBJective function for the vehicle routing problem
This function provides the objective function for Vehicle
routing problems (VRP). A number of examples are provided,
see vrpgetdata for the data definition of the problem
This function computes the length/cost of the routes given by the
individuals. The variables of the individuals define the order
of the points to travel for each of the used vehicles.
The format of the route coding in the individuals is described
Beside the maximum load time windows may also used.
Syntax: ObjVal = objvrp(Routes, VRPData)
Routes - Matrix containg the variables of the individuals
(the points of the routes).
The exact format of the coding of the routes and multiple
vehicles is described in vrpconvind (where the conversion
from individuals to routes is done)
VRPData - Structure containg problem specific data for the current VRP
or a string with name of VRP
see vrpgetdata for more info on names of VRPData elements
and supported examples
ObjVal - Matrix containing the objective values for the individuals
in Routes (length/cost of the routes).
elseif Routes == [NaN, NaN, xx], than see objfun1 for options
See also: demovrp, plotvrp, vrpconvind, vrpgetdata, tbxperm, initpp, mutswap, mutexch, recgp, recpm
This document is part of version 3.8
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
The Genetic and Evolutionary Algorithm Toolbox is not public domain
© 1994-2006 Hartmut Pohlheim, All Rights Reserved,