i was looking for 2 entropy implementations that give the same answere. And i found it, but guess what? its because they are the same code.
the jentropy used in this submission is the same as the entropy file here http://www.mathworks.com/matlabcentral/fileexchange/12857-entropy.
Hi, thanks for the code i like it a lot. I had to take a deeper look at the code, because in the populations.txt file the constraints are always zero. even for the TP_CONSTR example when the c in the function evaluation is not zero.
i think there should be another line on the bottom in the evaluation.m file.
% Save the objective values and constraint violations
indi.obj = y;
if( ~isempty(indi.cons) )
idx = find( cons );
if( ~isempty(idx) )
indi.nViol = length(idx);
indi.violSum = sum( abs(cons) );
indi.cons =cons; %added line!
indi.nViol = 0;
indi.violSum = 0;
Could you or some body else please also check if that is right? and that i am not messing up something else by doing this?
I'm running the tool, and it works very well! Thank you!
But why you describe the cycles with Amplitudes and not Range? Is it correct, to multibly the amplitude by 2 at the end to get the range?
(2*mx) to get the
If you are running MatLAB R2012b on a Macbook you can follow the link below in order to use the rainflow.c script:
It will guide you how to install Xcode, patch it and then you are ready to compile your mex file for Matlab by writing this in your command window:
I'm currently running MatLAB R2012b on my Macbook Pro, but I'm having trouble running the script. Is there a rainflow.mexOSX? When I'm running rfdemo1.m it gives me this error:
Undefined function 'rainflow' for input arguments of type 'double'.
Error in rfdemo1 (line 35)