Skip to content

Commit

Permalink
#98 changed order at Neighborhood::random
Browse files Browse the repository at this point in the history
  • Loading branch information
rcabanasdepaz committed Oct 12, 2021
1 parent fdfad84 commit 0774f68
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ public Solution move(Solution from, Move doing) {
private BayesianFactor random(GenericFactor factor) {
if (factor instanceof ExtensiveLinearFactor) {
return new ExtensiveLinearToRandomBayesian().apply((ExtensiveLinearFactor<?>) factor);
// TODO: issue #98, make this work without non-negative constraints
//} else if (factor instanceof SeparateHalfspaceFactor) {
// return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
} else if (factor instanceof SeparateLinearFactor) {
return new SeparateLinearToRandomBayesian().apply((SeparateLinearFactor<?>) factor);
} else if (factor instanceof SeparateHalfspaceFactor) {
return new HalfspaceToRandomBayesianFactor().apply((SeparateHalfspaceFactor) factor);
} else if (factor instanceof BayesianFactor) {
return (BayesianFactor) factor;
}
Expand Down

0 comments on commit 0774f68

Please sign in to comment.