Giter Club home page Giter Club logo

Comments (3)

xcsp3team avatar xcsp3team commented on July 18, 2024

Sorry for the delay (it seems that the message was not sent or received).

A first quick answer is that you can use specific options for the solver.
The value to 'options' is added to the command line used to run the solver.
For example, you can test :

if solve(verbose=0, options="-t=10s") in (SAT, OPTIMUM):
    print(values(x))

The value "-t=10s' is valid for the solver ACE.

I am going to check a few things, and will post an additional part for the answer

from pycsp3.

xcsp3team avatar xcsp3team commented on July 18, 2024

We have to improve the documentation here (concerning the way to pass options to solvers).
To answer your questions, in addition to the first possible statement of my previous answer, you can also write:

if solve(solver="ACE,v,limit=4s") is SAT:

or

if solve(solver="CHOCO,v,limit=4s") is SAT:

Of course, note that v (for verbose) can be discarded.

from pycsp3.

hari-2904 avatar hari-2904 commented on July 18, 2024

Thank you very much for the responce. This worked. I'm gonna go ahead and close the issue now.

from pycsp3.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.