Closed ashishbhatti closed 5 years ago
Thank you for reporting this error. This is because the function propagate_spirals_mex is a mexfile that was create for macosx systems. I guess you are using a different operating system.
I fixed this error by calling the normal matlab function. This causes to have reduced performances.
David
Thanks @dmoranteg The error is resolved, I am able to run the example successfully. Ashish
I ran the example in the readme.md with a few tweaks, the following error occured
input =
Evaluating the objective function... Generation: 1 / 200 , Individual: 200 / 200 Error using departure_cons (line 71) Undefined function 'propagate_spirals_mex' for input arguments of type 'double'.
Error in departure_spiral (line 113) [c,ceq] = departure_cons(x,aux);
Error in fitness_nsga2 (line 149) [DV(i),out,flag] = departure_spiral(planet_seq(1),planet_seq(i+1),et(1),ToFg(t+1),type(i),data);
Error in evaluate>evalIndividual (line 50) [y, cons] = objfun( indi.var, varargin{:} );
Error in evaluate (line 17) parfor i = 1:N
Error in nsga2 (line 81) [pop, state] = evaluate(opt, pop, state, varargin{:});
Error in molto_it (line 205) output = nsga2(options,input);