optaplanner - Custom move implementation -


when creating custom move methods “getplanningentities” , “getplanningvalues” need implemented. in these methods entities , values need added in list , returned.

in custom move changing multiple planning entity instances belong different planning entity classes.

when turning on full_assert ok there no errors.

i wanted know should order of planning entities returned “getplanningentities” same order of values returned “getplanningvalues” (this how wanted know how “getplanningentities” , “getplanningvalues” operate).i know used entitytabu , valuetabu.

also when “equals” , “hashcode” methods called printing out text see when called doesn’t appear?

move.equals() , hashcode() use movetabu (which isn't great, hardly ever use it).

the order of return values of getplanningentities() , getplanningvalues() doesn't matter, return different type of elements in cases (except in chained cases). example in cloudbalancing, getplanningentities() returns collection of processes , getplanningvalues() returns collection of computers. in change move, both collections singleton.

see cloudcomputerchangemove , cloudprocessswapmove inspiration.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)