diff --git a/Hypertension_U.rb b/Hypertension_U.rb index 61633da..272bf63 100644 --- a/Hypertension_U.rb +++ b/Hypertension_U.rb @@ -144,10 +144,9 @@ def problem(state, tasks, debug = false, max_plans = -1, min_prob = 0, ordered = def task_permutations(state, tasks) # All permutations are considered tasks.permutation {|task_list| - @state = state - task_list = Marshal.load(Marshal.dump(task_list)) - planning(task_list) + planning(Marshal.load(Marshal.dump(task_list))) return if @plans.size == @max_plans + @state = state } end end \ No newline at end of file