Skip to content

How to use Engine.query method? #215

Answered by thorulf4
m5261136 asked this question in Q&A
Discussion options

You must be logged in to vote

It is currently not possible to specify engine options in the query method. You would have to use the engine.setOptionSettings method and then call query.

Here is an example of how to do this:

EngineSettings options = engine.getOptions().get().getDefaultSettings();
options.addSetting("-S", "1");
options.addSetting("--state-representation", "0");
options.addSetting("--diagnostic", "0");
options.addSetting("--extrapolation", "0");
// Add remaining options here

engine.setOptionSettings(options);
engine.query(system, query, qf);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m5261136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants