Commit d26018b8 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Fixing bug in parameter setting where F was not negative

parent 4f6c42d2
......@@ -96,9 +96,9 @@ std::list<std::shared_ptr<DWQMI>> DefaultParameterSetter::setParameters(
problemGraph->getEdgeWeight(pi,
neighbor));
}
newWeight = std::get<0>(
problemGraph->getVertexProperties(pi))
+ newWeight - 1.0;
newWeight += std::get<0>(
problemGraph->getVertexProperties(pi));
newWeight *= -1.0;
}
if (std::fabs(newWeight) > 1e-4) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment