Skip to content

Commit 2ef8918

Browse files
author
magicindian
committed
Hll climbing search fixed.
1 parent f408132 commit 2ef8918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aima/search/informed/HillClimbingSearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Object getLastSearchState() {
8686
}
8787

8888
private Node getHighestValuedNodeFrom(List children, Problem p) {
89-
double highestValue = Double.MIN_VALUE;
89+
double highestValue = Double.NEGATIVE_INFINITY;
9090
Node nodeWithHighestValue = null;
9191
for (int i = 0; i < children.size(); i++) {
9292
Node child = (Node) children.get(i);

0 commit comments

Comments
 (0)