C# Class VRP.VRPTW.Data.Route

Mostra file Open project: zaycev/vrptw Class Usage Examples

Public Properties

Property Type Description
Problem Problem

Public Methods

Method Description
AddCustomer ( Customer newCustomer ) : void
Capacity ( ) : double
Copy ( ) : Route
Index ( ) : int
InsertCustomer ( Customer newCustomer, int position ) : void
IsFeasible ( ) : bool
Length ( ) : double
NextServiceBeginTime ( AbsNode newCustomer, AbsNode prevCustomer, double prevTime ) : double
PrintToString ( bool printTime = false, bool printCapacity = false ) : string
RemoveAt ( int position ) : void
Route ( Problem problem ) : System
Route ( Problem problem, Customer seedCustomer ) : System

Private Methods

Method Description
AddNode ( AbsNode newNode ) : void
UpdateId ( ) : void

Method Details

AddCustomer() public method

public AddCustomer ( Customer newCustomer ) : void
newCustomer Customer
return void

Capacity() public method

public Capacity ( ) : double
return double

Copy() public method

public Copy ( ) : Route
return Route

Index() public method

public Index ( ) : int
return int

InsertCustomer() public method

public InsertCustomer ( Customer newCustomer, int position ) : void
newCustomer Customer
position int
return void

IsFeasible() public method

public IsFeasible ( ) : bool
return bool

Length() public method

public Length ( ) : double
return double

NextServiceBeginTime() public method

public NextServiceBeginTime ( AbsNode newCustomer, AbsNode prevCustomer, double prevTime ) : double
newCustomer AbsNode
prevCustomer AbsNode
prevTime double
return double

PrintToString() public method

public PrintToString ( bool printTime = false, bool printCapacity = false ) : string
printTime bool
printCapacity bool
return string

RemoveAt() public method

public RemoveAt ( int position ) : void
position int
return void

Route() public method

public Route ( Problem problem ) : System
problem Problem
return System

Route() public method

public Route ( Problem problem, Customer seedCustomer ) : System
problem Problem
seedCustomer Customer
return System

Property Details

Problem public_oe property

public Problem,VRP.VRPTW.Data Problem
return Problem