|
What are the problems for testing it by yourself? You could already
had tried it many times.
let for example scf=[0.1 1 100 0.1] (you can just set it to your x0 or
typicalX; if zeros are present in x0 - replace them to for example
min(coords of x0 that are not equal to zero)), than try using
[x_ fval] = fminsearch(myobjfun2, x0 ./ scf);
x=x_ .* scf
------------
function r=myobjfun2(x)
global scf % or pass it as 2nd param of myobjfun2
x2=scf .* x
r= myobjfun(x)
btw openopt ralg enables all types of constraints and (sub)gradient
provided by user to objfun and/or constraints.
WBR, D.
On Mar 27, 11:34 am, Peter Bone <peterb...@hotmail.com> wrote:
> Thanks. I know that the fminsearch function doesn't scale the values automatically. My question is; will scaling them myself help the solver find the optimum solution?
> I have to use fminsearch by the way.
|