Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/solvers/gecode/procedures/localprocedures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,19 @@ solve_generic_portfolio(LocalModel * base, GIST_OPTIONS * lo, int iteration) {
localOptions.threads = n;
}

SEBs sebs;

for (unsigned int i = 0; i < strategies; ++i){
Search::Option o;
unsigned int threads = base->options->portfolio_threads() / strategies;
if (threads == 0) threads = 1;
o.threads = threads;
o.stop = localStop;
sebs << bab<LocalModel>(o);
}

// Local portfolio meta-engine
PBS<LocalModel, BAB> e(l, localOptions);
PBS<LocalModel, BAB> e(l, sebs, localOptions);

// Solve the local problem for the given search strategy
bool found_local_solution = false;
Expand Down