Refactoring
This commit is contained in:
parent
67c2c0c0ac
commit
0f77ce390b
|
|
@ -177,6 +177,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
statistics << totalError;
|
statistics << totalError;
|
||||||
for (const auto &patternObjectiveValue : resultsPerPattern) {
|
for (const auto &patternObjectiveValue : resultsPerPattern) {
|
||||||
|
statistics << patternObjectiveValue.first;
|
||||||
statistics << patternObjectiveValue.second.objectiveValue;
|
statistics << patternObjectiveValue.second.objectiveValue;
|
||||||
for (const double &optimalX : patternObjectiveValue.second.x) {
|
for (const double &optimalX : patternObjectiveValue.second.x) {
|
||||||
statistics << optimalX;
|
statistics << optimalX;
|
||||||
|
|
|
||||||
|
|
@ -499,8 +499,8 @@ ReducedModelOptimizer::ReducedModelOptimizer(
|
||||||
void ReducedModelOptimizer::initializePatterns(
|
void ReducedModelOptimizer::initializePatterns(
|
||||||
FlatPattern &fullPattern, FlatPattern &reducedPattern,
|
FlatPattern &fullPattern, FlatPattern &reducedPattern,
|
||||||
const std::unordered_set<size_t> &reducedModelExcludedEdges) {
|
const std::unordered_set<size_t> &reducedModelExcludedEdges) {
|
||||||
fullPattern.setLabel("full_pattern_" + fullPattern.getLabel());
|
//fullPattern.setLabel("full_pattern_" + fullPattern.getLabel());
|
||||||
reducedPattern.setLabel("reduced_pattern_" + reducedPattern.getLabel());
|
//reducedPattern.setLabel("reduced_pattern_" + reducedPattern.getLabel());
|
||||||
assert(fullPattern.VN() == reducedPattern.VN() &&
|
assert(fullPattern.VN() == reducedPattern.VN() &&
|
||||||
fullPattern.EN() >= reducedPattern.EN());
|
fullPattern.EN() >= reducedPattern.EN());
|
||||||
polyscope::removeAllStructures();
|
polyscope::removeAllStructures();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue