Refactoring

This commit is contained in:
iasonmanolas 2021-02-09 20:01:29 +02:00
parent 67c2c0c0ac
commit 0f77ce390b
2 changed files with 3 additions and 2 deletions

View File

@ -177,6 +177,7 @@ int main(int argc, char *argv[]) {
statistics << totalError;
for (const auto &patternObjectiveValue : resultsPerPattern) {
statistics << patternObjectiveValue.first;
statistics << patternObjectiveValue.second.objectiveValue;
for (const double &optimalX : patternObjectiveValue.second.x) {
statistics << optimalX;

View File

@ -499,8 +499,8 @@ ReducedModelOptimizer::ReducedModelOptimizer(
void ReducedModelOptimizer::initializePatterns(
FlatPattern &fullPattern, FlatPattern &reducedPattern,
const std::unordered_set<size_t> &reducedModelExcludedEdges) {
fullPattern.setLabel("full_pattern_" + fullPattern.getLabel());
reducedPattern.setLabel("reduced_pattern_" + reducedPattern.getLabel());
//fullPattern.setLabel("full_pattern_" + fullPattern.getLabel());
//reducedPattern.setLabel("reduced_pattern_" + reducedPattern.getLabel());
assert(fullPattern.VN() == reducedPattern.VN() &&
fullPattern.EN() >= reducedPattern.EN());
polyscope::removeAllStructures();