Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing documentation of --opt-heuristic #93

Closed
rkaminsk opened this issue Jul 7, 2023 · 2 comments
Closed

confusing documentation of --opt-heuristic #93

rkaminsk opened this issue Jul 7, 2023 · 2 comments

Comments

@rkaminsk
Copy link
Member

rkaminsk commented Jul 7, 2023

Clasp reports:

--opt-heuristic=<list>  : Use opt. in <list {sign|model}> heuristics

What about

--opt-heuristic=<list>  : Signs for literals subject to optimization
    <list>: {sign|model}
      sign : Use signs minimizing objective
      model: Use signs from literals in last model

It is also a bit unclear how to pass an empty list. It seems like the numeric 0 is possible but not the empty string.

@BenKaufmann
Copy link
Contributor

I went with:

  --opt-heuristic=<list>  : Enable optimization heuristic
      <list>: {sign|model}
        sign : Prefer signs minimizing objective
        model: Assume literals minimizing objective after each model

Does this work for you?

It is also a bit unclear how to pass an empty list. It seems like the numeric 0 is possible but not the empty string.

You can pass all supported "off" values (0, "off", "no", "false") where a <list> is expected. I'd like to keep the empty string reserved for flag-like options.

@rkaminsk
Copy link
Member Author

rkaminsk commented Jul 9, 2023

I went with:

  --opt-heuristic=<list>  : Enable optimization heuristic
      <list>: {sign|model}
        sign : Prefer signs minimizing objective
        model: Assume literals minimizing objective after each model

Does this work for you?

Sure was a small nitpick anyway. Was just pointing someone at the option and stumbled over the description.

It is also a bit unclear how to pass an empty list. It seems like the numeric 0 is possible but not the empty string.

You can pass all supported "off" values (0, "off", "no", "false") where a <list> is expected. I'd like to keep the empty string reserved for flag-like options.

Perfect, off is also a good value to disable it.

Thanks!

@rkaminsk rkaminsk closed this as completed Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants