<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>I've been looking through my solver logs and on a problem i have posed, the solver seems to first initialize and setup a best score:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>INFO: Initialization time spend (3) for score (-5000004.0). Updating best solution and best score.</div><div><br></div><div>However, this score is not correct. I use collect to load Tokens of a certain type for my game, and those that are found, penalize the system with a constraint:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(0, 128, 0); "><span style="color: #960000">rule</span><span style="color: #000000"> </span>"Too much unclaimed territory"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #960000">when</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> $list : ArrayList ( size > 2) <span style="color: #960000">from</span> <span style="color: #960000">collect</span> (</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> Token ($type : type == TokenType.UNDEVELOPED))</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #960000">then</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #960000">for</span> (<span style="color: #960000">int</span> i = 0; i < $list.size(); i++) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #960000">insertLogical</span> (<span style="color: #960000">new</span> IntConstraintOccurrence (</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #008000">"Too much unclaimed territory"</span>, ConstraintType.NEGATIVE_SOFT, 3, $list));</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(150, 0, 0); ">end</div></div><div><br></div><div>However, the initial score does not seem to account for these inserted facts. Due to this, all improving solutions are rejected, and I see no change in the solution the solver finds and my starting solution. </div><div><br></div><div>Any suggestions on how to delay initialization? Or get the starting score to take into account this constraint (I've made it SOFT so the values aren't so hard to follow in the logs, it was initially a HARD constraint). I'd love to find a way around this problem, I've spent most of the day playing with different configurations (acceptors and foragers) trying to find a configuration that works for this base problem.</div><div><br></div><div>best wishes,</div><div><br></div><div>Andrew</div><div><br></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div><div>---------------------------------</div><div>Andrew Waterman</div><div>San Cristóbal de las Casas, Chiapas, Mexico</div><div>+52 1 967 107 5902</div><div>+1 510 342 5693</div><div><br></div></div><br></div><br></div><br></div><br></div><br></div></span><br class="Apple-interchange-newline"> </div><br></body></html>