python converter to c
void(){
int a = 1;
int b = 4;
int c = a+b;
return;
}
python converter to c
void(){
int a = 1;
int b = 4;
int c = a+b;
return;
}
python converter to c
def fitness(cand):
candidato=[]
for ia in range (75):
soma1=0
soma2=0
soma3=0
ib=cand*12 #endereço do individuo dentro da matriz B
for j in range (nv):
soma1 = out[ia][ib+j] + soma1 #soma elementos do cluster 1
soma2 = out[ia][ib+j+nv] + soma2 #soma elementos do cluster 2
soma3 = out[ia][ib+nv*2] + soma3 #soma elementos do cluster 3
candidato.append(min(np.sqrt(soma1),np.sqrt(soma2),np.sqrt(soma3)))
return np.sum(candidato)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us