資源簡介
車輛路徑選擇問題,典型的VRP帶時間窗的問題

代碼片段和文件信息
//?Client.cpp:?implementation?of?the?CClient?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“Client.h“
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
CClient::CClient()
{
}
CClient::CClient(const?CClient?&client)
{
*this=client;
}
CClient::SetClient(double?needUINT?time_lowUINT?time_uperint?previousint?next)
{
?????this->need=need;
?this->time_low=time_low;
?this->time_uper=time_uper;
?this->next=next;
?this->previous=previous;
}
CClient::~CClient()
{
}
double?CClient::GetNeed()
{
???return?this->need;
}
double?CClient::GetTime_low()
{
???return?this->time_low;
}
double?CClient::GetTime_uper()
{
???return?this->time_uper;
}
void?CClient::SetNeed(UINT?need)
{
this->need=need;
}
void?CClient::SetNext(UINT?next)
{
this->next=next;
}
void?CClient::SetPrevious(UINT?prev)
{
????this->previous=prev;
}
UINT?CClient::GetNext()
{
???return?next;
}
UINT?CClient::GetPrevious()
{
????return??previous;
}
void?CClient::SetNewTime(double?index)
{
this->time_new=index;
}
double?CClient::GetTime_new()
{
return?time_new;
}
void?CClient::SetServerTime(double?time)
{
???this->server_time=time;
}
double?CClient::GetServerTime()
{
return?server_time;
}
CClient::CClient(double?need????????????//需求
double?server_time?????//服務時間
double?time_low??????//時間窗開始時間
double?time_uper?????//時間窗結束時間
double?time_new??????//新的開始時間
UINT?previous
UINT?next)
{
this->need=need;
this->server_time=server_time;
this->time_low=time_low;
this->time_uper=time_uper;
this->time_new=time_new;
this->previous=previous;
this->next=next;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1894??2007-04-19?23:01??VPRTW\Client.cpp
?????文件???????1447??2007-04-19?23:01??VPRTW\Client.h
?????文件???????1190??2007-03-19?21:41??VPRTW\ReadMe.txt
?????文件????????290??2007-03-19?21:41??VPRTW\StdAfx.cpp
?????文件????????709??2007-04-13?21:32??VPRTW\StdAfx.h
?????文件???????1117??2007-04-21?15:20??VPRTW\Vehicle.cpp
?????文件????????902??2007-04-21?15:27??VPRTW\Vehicle.h
?????文件???????3391??2007-04-26?12:28??VPRTW\VPR.cpp
?????文件???????5004??2007-04-21?19:11??VPRTW\VPR.dsp
?????文件????????531??2007-03-19?21:41??VPRTW\VPR.dsw
?????文件??????91136??2007-08-18?10:26??VPRTW\VPR.ncb
?????文件??????49664??2007-08-18?10:26??VPRTW\VPR.opt
?????文件???????1366??2007-08-18?10:24??VPRTW\VPR.plg
?????文件??????20106??2007-08-18?10:24??VPRTW\VPR1.cpp
?????文件???????2409??2007-04-26?12:18??VPRTW\VPR1.h
?????目錄??????????0??2007-08-18?10:27??VPRTW
-----------?---------??----------?-----??----
???????????????181374????????????????????17
- 上一篇:尚硅谷-大數據-全套視頻資料
- 下一篇:labviewmyrio2017地址.txt
評論
共有 條評論