Community Profile

photo

mariam mughees


Active since 2015

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


my question is when i give value of HOUR=24 this becomes infinite and i am calling this code in my genetic algorithm as fitness function why this issue?
function y=fitness(x) global Hour; for i = 1:Hour num=1+0.0125*x(14+i); temp=casenew(x(i),x(2+i),...

8 years ago | 1 answer | 0

1

answer

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


when i define my variable Simu_Hour in main file it make an infinite loop of GENETIC ALGORITHM
function y=fitness(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); %%%%%%%%%%%%%%%%%%%%%%...

8 years ago | 0 answers | 0

0

answers

Question


this is code which i am trying to run , when i run this program it gives 168 variables but does not fulfill constraints criteria can any one tell what is problem in code
%MAIN FUNCTION % nvars = 240; nvars = 168; LB=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

8 years ago | 0 answers | 0

0

answers

Question


i want to know what is meant by double here pl answer
Error using ga (line 342) Undefined function 'constraints' for input arguments of type 'double'. Error in main1 (lin...

8 years ago | 2 answers | 0

2

answers

Answered
i want to know what is meant by double here pl answer
whe i run my main file of GA it gives this error

8 years ago | 0

Question


this is my code for fitness of genetic algorithm , i have data to 7 variables i want to know how to upload that data in my function?
function y=fitness1(x) p = 0; global Simu_Hour; for j = 1:Simu_Hour tap=1+0.0125*x(144+j); temp=case30(x(j),x(24+j),x(48+j)...

8 years ago | 0 answers | 0

0

answers

Question


function mpc= filename(var1,var2) I want to know how this mpc fuction works ?
_function mpc= filename(var1,var2)_

8 years ago | 0 answers | 0

0

answers