From f3ee32690e7cb9f04a9ec6c3c29b244f40bdee75 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Tue, 10 Nov 2015 09:18:41 +0100 Subject: [PATCH] fixed bug introduced in commit 660fc6 --- matlab/evaluate_planner_objective.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/evaluate_planner_objective.m b/matlab/evaluate_planner_objective.m index bdd57d06c..40f186590 100644 --- a/matlab/evaluate_planner_objective.m +++ b/matlab/evaluate_planner_objective.m @@ -36,7 +36,8 @@ if nspred > 180 disp(' ') disp(['WARNING in evaluate_planner_objective: model too large, can''t evaluate planner ' ... 'objective']) - return NaN + planner_objective_value = NaN; + return end beta = get_optimal_policy_discount_factor(M.params,M.param_names);