⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 problem.h

📁 vrpsd -tabu搜索求解!!!!!!!!!!!!!!!!!!!!!!!
💻 H
字号:
#ifndef PROBLEM_H
#define PROBLEM_H

#include "Control.h"
#include <vector>
#include <fstream>


class PossibleDemand {
public:
  int     demand_;
  double  probability_;
};

///The Problem class. 
class Problem {
public:
  ///Includes the depot.
  int numberOfCustomers;

  ///Vehicle capacity.
  int capacity;          

  ///DistanceMatrix[i][j] is the euclidean distance between customer i and custumer j.
  vector<vector<double> > distanceMatrix; 

  ///Table with customer demands and demand probabilities.
  ///Line i of the table is associated to customer whose name is "i".  
  vector<vector<PossibleDemand> >  customerDemand;

  ///Constructor of Problem. The argument is used for accessing input instance file
  ///and for overriding the input file capacity if a capacity value is given from
  ///the command line. 
  Problem( Control& );
};



#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -