-
Notifications
You must be signed in to change notification settings - Fork 2
/
quantum_annealing.hpp
33 lines (26 loc) · 1.04 KB
/
quantum_annealing.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <cstdarg>
#include <chrono>
#include <map>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include "species.hpp"
#include "connections.hpp"
#include "spu.hpp"
#include "anneal.hpp"
#include "input.hpp"
#include "options.hpp"
#include "algorithms.hpp"
namespace marxan {
using namespace std;
//Implemented QuantumAnnealing algorithm has the following issue:
//computeQuantumChangeScore has to be redesigned beacause
//Total score != Sum of scores of individual pu change
//due mutual effect via species cups, boundaries and clumping.
void quantumAnnealing(int spno, int puno, const vector<sconnections>& connections, vector<int>& R, double cm,
vector<sspecies>& spec, const vector<spustuff>& pu, const vector<spu>& SM, vector<spu_out>& SM_out, scost& change, scost& reserve,
long int repeats, int irun, string savename, double misslevel,
int aggexist, double costthresh, double tpf1, double tpf2, int clumptype, sanneal& anneal, rng_engine& rngEngine);
} // namespace marxan