We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e064a9e commit e6e7dd8Copy full SHA for e6e7dd8
aima-core/src/main/java/aima/core/search/online/LRTAStarAgent.java
@@ -48,6 +48,7 @@
48
*
49
* @author Ciaran O'Reilly
50
* @author Mike Stampone
51
+ * @author Ruediger Lunde
52
*/
53
public class LRTAStarAgent<S, A extends Action> extends AbstractAgent {
54
@@ -211,7 +212,7 @@ private void init() {
211
212
private double lrtaCost(S s, A action, S sDelta) {
213
// if s' is undefined then return h(s)
214
if (null == sDelta) {
- return getHeuristicFunction().applyAsDouble(s);
215
+ return h.applyAsDouble(s);
216
}
217
// else return c(s, a, s') + H[s']
218
return problem.getStepCosts(s, action, sDelta)
0 commit comments