Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Steve Echols28-Jan-08 18:25
Steve Echols28-Jan-08 18:25 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas28-Jan-08 19:15
Nibu babu thomas28-Jan-08 19:15 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT1-Feb-08 20:20
Hamid_RT1-Feb-08 20:20 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas1-Feb-08 22:24
Nibu babu thomas1-Feb-08 22:24 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT2-Feb-08 2:10
Hamid_RT2-Feb-08 2:10 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas2-Feb-08 2:15
Nibu babu thomas2-Feb-08 2:15 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT2-Feb-08 2:44
Hamid_RT2-Feb-08 2:44 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas4-Feb-08 16:19
Nibu babu thomas4-Feb-08 16:19 
QuestionRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT28-Jan-08 19:20
Hamid_RT28-Jan-08 19:20 
GeneralCStatusBar problem Pin
hanlei000000000928-Jan-08 17:30
hanlei000000000928-Jan-08 17:30 
GeneralRe: CStatusBar problem Pin
Hamid_RT28-Jan-08 19:24
Hamid_RT28-Jan-08 19:24 
GeneralChoose between cURL and WinInet Pin
Sudhir Mangla28-Jan-08 17:27
professionalSudhir Mangla28-Jan-08 17:27 
GeneralRe: Choose between cURL and WinInet Pin
Hamid_RT28-Jan-08 19:32
Hamid_RT28-Jan-08 19:32 
GeneralRe: Choose between cURL and WinInet Pin
David Crow29-Jan-08 2:58
David Crow29-Jan-08 2:58 
GeneralRe: Choose between cURL and WinInet Pin
Sudhir Mangla29-Jan-08 4:23
professionalSudhir Mangla29-Jan-08 4:23 
Generalinteresting question about new and nothrow new Pin
George_George28-Jan-08 16:39
George_George28-Jan-08 16:39 
GeneralRe: interesting question about new and nothrow new Pin
Maxwell Chen28-Jan-08 16:51
Maxwell Chen28-Jan-08 16:51 
GeneralRe: interesting question about new and nothrow new Pin
George_George28-Jan-08 19:21
George_George28-Jan-08 19:21 
GeneralRe: interesting question about new and nothrow new Pin
David Crow29-Jan-08 2:50
David Crow29-Jan-08 2:50 
GeneralRe: interesting question about new and nothrow new Pin
George_George29-Jan-08 13:46
George_George29-Jan-08 13:46 
Generalhelp Pin
gentleguy28-Jan-08 15:57
gentleguy28-Jan-08 15:57 
GeneralRe: help Pin
David Crow28-Jan-08 16:21
David Crow28-Jan-08 16:21 
GeneralRe: help Pin
gentleguy28-Jan-08 20:30
gentleguy28-Jan-08 20:30 
the following is my code:

for (int i = 0;i<10;i++)
{
minValue = fitness[9];

if (fitness[i] <= minValue )
{
minValue = fitness[bb];
for (int j = 0; j<3; j++)

for (int k = 0; k<4; k++)

gbest[i][j][k]=x[i][j][k];

for (int ii =0; ii<10; ii++)
{
for (int j = 0; j<3; j++)
{
for (int k = 0; k<4; k++)
{

vn[ii][j][k] = w*v[ii][j][k] + c1*rand()*(pbestArray[ii][j][k]-x[ii] [j][k]) + c2*rand()*(gbest[i][j][k]-x[ii][j][k]);
v[ii][j][k] = vn[ii][j][k];
xn[ii][j][k] = x[ii][j][k] + v[ii][j][k] + a1*(g-fitness[ii]);
x[ii][j][k] = xn[ii][j][k];
}
}
}
}
}

}

dear friend

firstly, i need to determine gbest in first 10 loop, and then the following formaula is following second l0 loop apart from gbest, because gbest is constant relave to second loop..but how to make gbest is a constant,,no change according my first loop.....so far, gbest could not get value from s[ii][j][k], i don't know why? could help me? thanks

Li Zhiyuan

5/10/2006

GeneralRe: help Pin
CPallini28-Jan-08 21:47
mveCPallini28-Jan-08 21:47 
QuestionRe: help Pin
David Crow29-Jan-08 2:44
David Crow29-Jan-08 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.