create a random vector in -0.5 , 0.5 and scale it according the domain of the problem . concode_field_sep ControlParameter alpha concode_elem_sep DistanceMeasure distanceMeasure concode_elem_sep ControlParameter betaMin concode_elem_sep ControlParameter gamma concode_field_sep void setGamma concode_elem_sep Vector updatePosition concode_elem_sep StandardFireflyPositionUpdateStrategy getClone concode_elem_sep Vector moveToward concode_elem_sep ControlParameter getBetaMin concode_elem_sep DistanceMeasure getDistanceMeasure concode_elem_sep ControlParameter getGamma concode_elem_sep void setAlpha concode_elem_sep void setBetaMin concode_elem_sep void setDistanceMeasure concode_elem_sep ControlParameter getAlpha
Vector function ( Firefly arg0 ) { double loc0 = arg0 . getPosition ( ) . boundsOf ( 0 ) . getRange ( ) ; return Vector . newBuilder ( ) . repeat ( arg0 . getDimension ( ) , Real . valueOf ( 0.0 , new Bounds ( - 0.5 , 0.5 ) ) ) . buildRandom ( ) . multiply ( loc0 ) ; }