Comments (3)
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.
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.
Thank you very much for the responce. This worked. I'm gonna go ahead and close the issue now.
from pycsp3.
Related Issues (15)
- Running `csp_single.py` fails HOT 1
- Wrong lib call in test HOT 2
- -data gets concatenated to xml filename HOT 2
- Unknown number of variables HOT 4
- Some typos in the online documentation http://pycsp.org HOT 1
- TypeError when defining constrains HOT 2
- pycsp3 fails to solve anything HOT 4
- Add the possibility to store log of solver and generated xml files in a specific directory. HOT 1
- TypeError: list indices must be integers or slices, not VariableInteger HOT 3
- Possible error in the Taillard-js-015-15-1.json data file! HOT 2
- Syntax warning: "is" used with literal. Did you mean "==" in compiler.py:271 HOT 1
- 'ValueError encountered when using predicate 0.5'
- Variable name "values" should be avoided HOT 1
- is the BinPacking constraint working properly? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycsp3.