Community Profile

photo

Pratik Anandpara


Last seen: environ 3 ans il y a Actif depuis 2016

Followers: 0   Following: 0

Statistiques

  • Thankful Level 3

Afficher les badges

Feeds

Afficher par

Question


n*2 matrix which come from output--Row is not fixed but column is 2--- and that process rotate in loop 10 times save all values of loop in result matrix
a=18; b=22; for i=1:10 r1 = randi([18 22],1,1) name= (b-a).*rand(r1,2) + a end save this all name matrix v...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


any single vector element =0 than loop again rotate and again loop start from first line
30 element in vector check each value of vector and any element in vector =0 than loop again start from first step i want to g...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


each time take two value from GA in range put that value as x(1) and x(2) in P and after that value check the answer of Q which we want minimum value
unction [p,q]=fitfunda1(x) %for this we give two values of x(1) and x(2) sys= xlsread('IEEEE1.xlsx'); %this is exce...

environ 7 ans il y a | 1 réponse | 0

0

réponse

Question


i have one function file and m file now i give values of x(1) and x(2) in function file which update in m fille and run
function y=fitfund1(x) %for this we give two values of x(1) and x(2) sys= xlsread('IEEEE1.xlsx'); %this is excel file...

environ 7 ans il y a | 2 réponses | 0

2

réponses

Question


i have function file i want put limit in variables
function y=myfitness(x) y= x(1)+x(2)+x(3); end this is function file and i want 2<x1<11 ,3<x2<12, 4<x3<12 in this ran...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


covert 9.2532 decimal into binary
convert decimal into binary with decimal point

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


check answer in range otherwise do again process with random generated number check until all digit of loop in range
for k1=1:10 %set population generation limit her pop1h(k1)=randi([200 1150],1,1 ); %random genert...

environ 7 ans il y a | 1 réponse | 0

1

réponse

Question


check all matrix element and if any element is out of range do again process
in one for loop i do 10-11 process and get matrix if matrix element is not in range than do again same process ,in first step ge...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


store each result inspite of re write updated answer i work in main file and call function from function file store each result of values which run in function file
function [branchcu,totalpowerloss,vpu,finalloss] = loadflow1(sys,DLF,BIBC,branch,result,BCBV) v0=(12660+1i*0).*ones(bra...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i want vector which is long size and each time size change but pattren is same in putting value
vector like this....i want in this sequence..this is for 1 to 8 row =[ 2 1 4 3 6 5 8 7 3 1 5 3 7 5 1 7...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


check with all parameter except its own
3 5 1 5 2 2 2 5 2 5 3 1 5 1 3 7 ...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


for loop each time create matrix ,i set if loop which check row total==9 ,if not proper than loop again create and check conditiion but here condition not follow and create matrix
clc close all; clear all; X = 0:9 ; %three variables Y=X ; Z = X ; objfun=[(X-0.33).^2+(Y-0.33).^2+(Z-0....

plus de 7 ans il y a | 1 réponse | 0

0

réponse

2

réponses

Question


in entry matrix first two raw is exchange with another matrix which is 2*3 replace first two whole raw with that
entry matrix 1.00 4.00 4.00 3.00 0 6.00 5.00 ...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


generate crossover process and make matrix of new created childs
entry = randi(9,6,3) now convert this entry matrix in 8 digit binary now change two conecutive element column and created n...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i generate three digit from crossover with another digit but now i valid only that child1+child2+child3..(in this sequence) which total is less than or equal to 9
bins=fliplr(de2bi(entry,8)); swappedcolumns = [4 5 6]; child = bins; swapoddeven = reshape([2:2:size(bins, 1); ...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


random matrix 6*3 and i want set row according highest total of row set as first than lower
2.00 1.00 6.00 =9 0 8.00 2.00 =10 1.00 2.00 ...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


find minimum of math function with genetic algorithm in matlab, I know matlab have toolbox for GA but I want achive it programmically
main.m global population; global fitness; global popsize; format bank; popsize=50; report=zeros(popsize,2); ...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i want only that child which strickly follow X+Y+Z=9 if not follow than doing process one more time with other element,
wrappedcolumns = [7 8]; child = parent; swapoddeven = reshape([2:2:size(parent, 1); 1:2:size(parent, 1)], 1, ]); chil...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i want to store elements in matrix and call number wise but there call in workspace it seems undefined function and consider only last entry
for d=1:18 parent=bitand(entry(d), 2.^(7:-1:0)) > 0; end (there is entry(18*1) matrix it has 18 decimal number) ...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


parent1= 0 0 0 0 1 0 0 1 and parent2=0 0 0 0 1 1 0 0 and i have another parent 1 to 50 element and i want swap 7 and 8th raw
parent 1 :0 0 0 0 1 0 0 1 parent 2: 0 0 0 0 1 1 0 0 swap 7 & 8 element of both1 and create new one child 1: 0 0 0 0 1 0...

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


rowsToSwap = [5 6 7]; child1 = pa2; child1(rowsToSwap) = pa1(rowsToSwap); child2 = pa1; child2(rowsToSwap) = pa2(rowsToSwap); make this process in for loop
parent 1--> 0 0 0 0 1 1 0 0 parent 2--> 0 0 0 0 1 0 0 1 child 1--> 0 0 0 0 1 0 0 0 child 2--> 0 0 0 0 1 1 0 1 as like this ...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i have S= 6*3 matrix and i want to give sequencial name to each element like s(1,1)=p1 ....s(1,2)=p2...
i have random 6*3 matrix and want to give name to each element in sequence like i call p1 than show me the data of s(1,1)

plus de 7 ans il y a | 2 réponses | 0

2

réponses

Question


two point corssover process in given matrix element In matlab
matrix2D = '00000011' '00000100' '00000010' '00000010' '00000010' '00000101' '00000010' '000000...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

0

réponse

Question


p=4 and b1=dec2bin(p,8) now b1='00000100' and iwant now b1= 0000 first raw & 01000 second raw 2*4 size matrix from binary digit number
8 digit binary to 4 digit group and make matrix from it b1= 0 0 0 0(first raw) 0 0 0 1(second raw) b2= 0 0 0 0 1 0 1...

plus de 7 ans il y a | 1 réponse | 0

1

réponse

Question


using genetic algorithm solve algebric equation in matlab without using genetic toolbox. i want to find equation=(X-.33).^2+(Y-0.33).^2+(Z-0.33).^2 minumum value in range 0<x<10, 0<y<10,0<z<10 and X+Y+Z=9.99 value for x,y &z upto 2 decimal point
all process of genetic algorithm in crossover-mutation in matlab code,single point crossover is done in this process at each tim...

plus de 7 ans il y a | 1 réponse | 0

0

réponse

Question


i want to solve X+Y+Z=10 and 0<x<10, 0<y<10, 0<z<10 want each combination value of x,y and z in full digit
for value of x,y and z satisfy that equation and x, y and z in this range and answer in full digit in matlab than give answer i...

plus de 7 ans il y a | 2 réponses | 0

2

réponses