File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ Date: 2015-01-20
7272[DESCRIPTION]
7373Yada! Yada!
7474
75+ [ENTRY]
76+ Module: flatzinc
77+ What: bug
78+ Rank: minor
79+ Thanks: H�kan Kjellerstrand
80+ [DESCRIPTION]
81+ LNS could fail when the search was restarted before finding the first solution.
82+
7583[ENTRY]
7684Module: search
7785What: bug
Original file line number Diff line number Diff line change @@ -1613,7 +1613,7 @@ namespace Gecode { namespace FlatZinc {
16131613
16141614 bool
16151615 FlatZincSpace::slave (const CRI& cri) {
1616- if (cri.restart () != 0 && _lns > 0 ) {
1616+ if (cri.restart () != 0 && _lns > 0 && cri. last () ) {
16171617 const FlatZincSpace& last = static_cast <const FlatZincSpace&>(*cri.last ());
16181618 for (unsigned int i=iv_lns.size (); i--;) {
16191619 if ((*_random)(99 ) <= _lns) {
You can’t perform that action at this time.
0 commit comments