Skip to content

Option to disable learning #3

Closed

Description

@maartenflippo

It would be good to have the option to imitate traditional CP solvers, i.e., disable learning. In this case, we would simply backtrack to the previous level and post the negation of the previous decision. This would enable us to compare almost apples-to-apples with other nonlearning solvers, e.g., gecode. Traditional solvers are highly optimised so perhaps we could learn from them this way! We would also get to see the value of learning for different problems.

A possible way to approach this is to create a new struct (maybe?) that has the functionality “resolve_conflict”. In this case, learning strategies would deal with it as we do now, whereas the traditional approach would skip the learning part. This approach would also be useful when we add different learning schemes to the solver.

However, there are a few factors we need to take into account before we can properly compare to nonlearning solvers:

The synchronise methods of our propagators would need to be more advanced. Now we usually just recalculate the state, but when we only backtrack one decision level, it makes sense to only make a small change.

Probably would be best to use propagators that offer lazy explanations. Even so, there is going to be some overhead, but probably this will be small. It could also be that even with eager explanations this is not that important.

Solvers like Gecode are copy solvers, I am not sure if copy solvers make sense for LCG solvers, given that we restart often. Incremental propagation may be the way to go here. Just noting this as one factor when we compare solvers. Maybe copy solvers are useful also for LCG? Something to think about some-time.

Activity

  1. added
    enhancement
    on Jul 18, 2024
  2. added this to the milestone on Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions