VRPH  1.0
inc/TwoOpt.h
Go to the documentation of this file.
00001 
00002 //                                                        //
00003 // This file is part of the VRPH software package for     //
00004 // generating solutions to vehicle routing problems.      //
00005 // VRPH was developed by Chris Groer (cgroer@gmail.com).  //
00006 //                                                        //
00007 // (c) Copyright 2010 Chris Groer.                        //
00008 // All Rights Reserved.  VRPH is licensed under the       //
00009 // Common Public License.  See LICENSE file for details.  //
00010 //                                                        //
00012 
00013 #ifndef TWO_OPT_H
00014 #define TWO_OPT_H
00015 
00016 class TwoOpt
00017 {
00018 public:
00019     bool search(class VRP *V, int i, int criteria);
00020     bool route_search(class VRP *V, int r1, int r2, int criteria);
00021 
00022 private:
00023     bool evaluate(class VRP *V, int a, int b, int c, int d, int criteria, VRPMove *M);
00024     bool move(class VRP *V, VRPMove *M);
00025 
00026 };
00027 
00028 #endif
00029