VRPH  1.0
Public Member Functions
Swap Class Reference

#include <Swap.h>

List of all members.

Public Member Functions

bool evaluate (class VRP *V, int i, int j, VRPMove *M)
bool move (VRP *V, int u, int i)

Detailed Description

Definition at line 16 of file Swap.h.


Member Function Documentation

bool Swap::evaluate ( class VRP V,
int  i,
int  j,
VRPMove M 
)

Evaluates the move of swapping the positions of nodes u and i in the current For example, Current situation: t-u-v and h-i-j New situation: t-i-v and h-u-k

!!

Definition at line 16 of file Swap.cpp.

bool Swap::move ( VRP V,
int  u,
int  i 
)

This modifies the current solution information by swapping the positions of u and i in the current configuration if the proposed move meets the rules. Returns true if the move succeeds and false otherwise.

Definition at line 205 of file Swap.cpp.


The documentation for this class was generated from the following files: