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

LNS documentation is wrong #1039

Closed
Dimosts opened this issue Jun 17, 2023 · 0 comments
Closed

LNS documentation is wrong #1039

Dimosts opened this issue Jun 17, 2023 · 0 comments
Assignees
Milestone

Comments

@Dimosts
Copy link

Dimosts commented Jun 17, 2023

Hello,

in the documentation for using LNS- (https://choco-solver.readthedocs.io/en/latest/3_solving.html and https://choco-solver.org/docs/solving/lns/), the following code is given to run lns in tandem with CP:

solver.setLNS(INeighborFactory.random(ivars, new FailCounter(solver, 100));
solver.findOptimalSolution(Model.MINIMIZE, objective);

However, they have some flaws:

  1. A parenthesis is missing in the first line
  2. The arguments should be 1st the objective variable and 2ond the direction

I got them to work with:

solver.setLNS(INeighborFactory.random(F), new FailCounter(solver, 100));
solver.findOptimalSolution(objective, Model.MINIMIZE);
@cprudhom cprudhom self-assigned this Jun 22, 2023
@cprudhom cprudhom added this to the 4.11.0 milestone Jun 22, 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