Documentation of objvrp
Global Index (all files) (short | long)
| Local contents
| Local Index (files in subdir) (short | long)
Function Synopsis
[ObjVal, VRPData, VRPResult] = objvrp(Routes, VRPData)
Help text
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
specific information.
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
in vrpconvind.
Beside the maximum load time windows may also used.
Syntax: ObjVal = objvrp(Routes, VRPData)
Input parameter:
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
Output parameter:
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
Cross-Reference Information
This function calls |
This function is called by |
|
|
This document is part of
version 3.8 of the
GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab -
www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is
not public domain.
© 1994-2006 Hartmut Pohlheim, All Rights Reserved,
(support@geatbx.com).