-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneighborhood_generator.h
23 lines (20 loc) · 990 Bytes
/
neighborhood_generator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef NEIGHBORHOOD_GENERATOR_H
#define NEIGHBORHOOD_GENERATOR_H
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include "data_loader.h"
struct neighborhood_generator {
instance data_inst;
int seed;
void update_solution(vector<vector<int> > &updated_routes, vector<int> &updated_route_capacities);
void update_solution_custom( vector< vector<int> >& updated_routes, vector<int>& update_route_capacities, vector<int>& neighborhood_indicies );
void update_solution_deterministic( vector< vector<int> >& updated_routes, vector<int>& update_route_capacities, int n_type);
bool update_solution_best_improvement(vector< vector<int> >& updated_routes, vector<int> &updated_route_capacities);
//void update_solution_best_improvement_deterministic( vector< vector<int> >& updated_routes, vector<int>& updated_route_capacities);
void set_seed(int s);
neighborhood_generator(instance inst);
neighborhood_generator();
};
#endif