Optaplanner 6.1.0 cr1 -



Optaplanner 6.1.0 cr1 -

i trying implement value range entities planning variable. variable defined as

@planningvariable(valuerangeproviderrefs = {"xposrange"}) public bigdecimal getxcenter() { homecoming xcenter; }

the valuerangeprovider specified

@valuerangeprovider(id = "xposrange") public countablevaluerange<bigdecimal> getxpositions() { homecoming valuerangefactory.createbigdecimalvaluerange(new bigdecimal(0.0, mathcontext.decimal64), new bigdecimal(maxlength, mathcontext.decimal64)); }

ideally have within planning entity. however, values never changed when solution beingness solved. same true when "valuerangeprovider" added solution.

do "countablevaluerange" collections need added problem facts? if how, adding

facts.addall(getxpositions());

raises argument mismatch error.

i have tried add together next xml config file

<changemoveselector> <valueselector> <variablename>xcenter</variablename> </valueselector> </changemoveselector>

however, raises runtime error stating xcenter has no "getter" within entity.

the selectorconfig (valueselectorconfig(xcenter)) has variablename (xcenter) entityclass (packetname.part) not have getter. check spelling of variablename (xcenter)

please can point me in right direction. give thanks you.

"do countablevaluerange collections need added problem facts?" no. require enumerating them, unrealistic big value ranges (all possible longs example).

"however, raises runtime error stating xcenter has no getter within entity." suspect issue has nil utilize of countablevaluerange<bigdecimal>, has variable property name xcenter. motivation theory:

the error message speaks not finding planning variable (= step 2), not not finding value range (= step 3). did find planning entity (= step 1).

the javabeans specification related getters of getxcenter() , getafoo() , gethttpsomething() strange/illogical, if recall correctly. suspect getxcenter() leads property name of xcenter instead of xcenter (and yes, javabeans spec suck in regard, optaplanner has adhere javabeans spec).

optaplanner

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -