📄 problem.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 + -