Commit 53660a57 authored by Nicolas Peslerbe's avatar Nicolas Peslerbe

Correction PSO

parent d1d33f9a
......@@ -129,7 +129,7 @@ double fitfunc(const double* infra_obj_w,int its) {
fit_sens /= its;
fit_rb /= its;
// Better fitness should be higher
return fit_speed*(1.0 - sqrt(fit_diff))*(1.0 - fit_sens) * fit_rb;
return fit_speed*(1.0 - sqrt(fit_diff))*(1.0 - fit_sens);// * fit_rb;
}
//-------------MAIN------------//
......
......@@ -8,8 +8,8 @@ selectionDisabled: 0
viewpointLocked: 0
orthographicViewHeight: 1
textFiles: 0 "controllers/pso_epuck/pso_epuck.c" "controllers/pso_osb_sup/pso_obs_sup.c"
renderingDevicePerspectives: epuck4:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck0:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck2:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck3:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck0:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck4:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck1:camera;1;0.820513;0;0
renderingDevicePerspectives: epuck2:camera;1;0.820513;0;0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment