Skip to content

Mandatory actions #466

Answered by Framba-Luca
antoniojbm asked this question in Q&A
Jul 31, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @antoniojbm

A possible solution that comes to my mind is to model the concept of "you want to free pos0 as soon as possible". Maybe @hstairs or @mikand can propose other/better solutions.

So, here is the code I did, slightly modified, that implements this solution.

This is done by:

  • creating a fluent that says if pos0 is empty (decreasing it every time a vessel leaves pos0).
  • creating an accumulator, that increases on every action, if pos0 is not empty.
  • setting in the goals that the accumulator must be <= than the number of vessels +1 (so the barge can move to Delta, and all the vessels can leave the initial zone).

I also removed all the part that were not necessary for the planning an…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@antoniojbm
Comment options

Comment options

You must be logged in to vote
5 replies
@Framba-Luca
Comment options

@antoniojbm
Comment options

@Framba-Luca
Comment options

Answer selected by antoniojbm
@antoniojbm
Comment options

@Framba-Luca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants