fcampelo / DEMO

Differential Evolution for Multiobjective Optimization and its variants
27 stars 18 forks source link

Error in R-DEMO #4

Closed shdotcom closed 5 years ago

shdotcom commented 5 years ago

Hi,

would you please check this error:

Error using bsxfun
Non-singleton dimensions of the two input arrays must match each other.

Error in rdemo_opt>selection (line 257)
aux = bsxfun(@minus, Fn, zrn);

Error in rdemo_opt (line 70)
   P = selection(P, O, zr, options);

I have used this:

zr = [0.6 0.2];
f = @(x) dtlz3(x, 2);
xrange = dtlz_range ('dtlz3', 2);

% R-DEMO:
>> [fopt1, xopt1] = rdemo_opt(f, zr, xrange);

Thank you