Sample.cpp 271 Bytes
Newer Older
1
2
3
#include "Sample.hpp"


4
std::string SampleID::Str() const {
5
6
7
8
9
10
11
12
13
14
    return "l:" + std::to_string(level.fine) +
        "-m:" + std::to_string(number) +
        "-c:" + std::to_string((int) coarse);
}

void SampleSolution::Init() {
    Q = 0.0;
    Cost = 0.0;
    U = 0.0;
}