Skip to content

Commit

Permalink
Added more move heuristic configuration for only false non-shortest path
Browse files Browse the repository at this point in the history
  • Loading branch information
daveraja committed Jan 17, 2022
1 parent cb5889e commit 9d50456
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions encodings/path/move_choice_open_heur_nf.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
% ------------------------------------------------------------------------------
% Domain heuristics for improving move selection based on precomputed shortest
% path relations. Distinguish between domain and non-domain minpath
% calculations.
% ------------------------------------------------------------------------------
#include "minpath.lp".

#heuristic move(P,V,V') : edge(V,V',_), path(P,V''),
not shortest_path(V,V'',_,V'). [1,false]

% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------
28 changes: 28 additions & 0 deletions encodings/path_lb_mhnf.lp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
%!flags! --heuristic=Domain
%!desc! Use lower bounds and move heuristic
% ------------------------------------------------------------------------------
% The "fast" path encoding with no options.
% ------------------------------------------------------------------------------

#include "path/show_basic.lp".

#include "common/task_assignment.lp".
#include "common/task_sequencing_direct.lp".

#include "path/task_to_path.lp".

#include "path/move_choice_open.lp".

#include "path/move_sequencing.lp".

#include "path/visit_ordering.lp".

#include "path/path_encoding.lp".

#include "path/path_encoding_lb.lp".

#include "path/move_choice_open_heur_nf.lp".

% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------

0 comments on commit 9d50456

Please sign in to comment.