Hi,

I've installed the NumericalMethods package and I am trying to use the
class DhbMultiVariableGeneralOptimizer to optimize a function.
If I run the code of the test it works perfectly

| fBlock finder result |
fBlock := [ :x | |r| r := x * x. r = 0 ifTrue: [ 1] ifFalse: [ r sqrt sin /
r] ].
finder := DhbMultiVariableGeneralOptimizer maximizingFunction: fBlock.
finder desiredPrecision: 0.01.
finder origin: #(0.2 0.2 0.2) asVector; range: #(1 1 1) asVector.
result := finder evaluate.

however, if I want to set my own function, (for example the sum of the
elements of the parameter. fBlock := [ :x | x sum ]) it is throwing an
error of ScriptOutOfBounds

I am not sure If I am doing something wrong or there is a bug in the
implementation.

I haven't found too much  documentation about how to use this package.

Is there someone using this particular class?

Thanks in advance!

-- 
Sebastián Tleye

Reply via email to