Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Search For All Solution

hugues
2012-02-14
2013-05-30
  • hugues
    hugues
    2012-02-14

    Hello,
    I am solving a CSP problem with many solutions which i don't know the number. I modelled it in other to get 2 solutions,

    Is it Possible to get all solutions?

    Thank

     
  • kris
    kris
    2012-02-14

    Hi,

    Yes, you can find all solutions.

    If you have a model for your problem you can "instruct" search to find all solutions to this problem. To do it you need to use

       search.getSolutionListener().searchAll(true);

    For more information, please consult JaCoP Guide at  www.jacop.eu and specially section on search (http://jacopguide.osolpro.com/guideJaCoP.html#x1-420005).

    Best regards,
    /Kris