optaplanner - How do you create a Collection of GenuineVariableDescriptors? -
i'm trying implement own movelistfactory
, don't know how access / create variable descriptors move want instantiate. createmovelist
method (from movelistfactory
interface) takes single argument of instance of solution
class. can access planning variables need create chainswapmove
. i'm unsure how create first argument chainswapmove
constructor requires (e.g. collection<genuinevariabledescriptor>
). example in documentation doesn't shed light on process since custom move used in nqueens example doesn't require collection of genuinevariabledescriptors
. i've not come across examples of how can access these information contained in solution
object.
anything ending *descriptor
very internal api, not kind of classes want users using. docs presume build own move (which difficult indeed build valid move on chained variables leaves chain in valid state).
that being said, here's clue: innerscoredirector.getsolutiondescriptor().getentitydescripor(mycustomer.class).getvariabledescriptor("mypreviousstandstill")
...
Comments
Post a Comment