int main (int argc, char *argv[]) { ejecutable = argv[1]; archivo_configuracion = argv[2]; directorio = argv[3]; srand48 (atoi(argv[4])); cout<<"------------------------------------------------------------------------"<<endl; cout<<"---------------------------- INICIALIZACION ----------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; leer_archivo_configuracion(); optimo.parametro = new (int[cantidad_parametros]); H0 = new (float[cantidad_parametros]); K = new (float[cantidad_parametros]); cout<<"------------------------------------------------------------------------"<<endl; cout<<"-------------------- CREACION CONJUNTO INICIAL -------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; crear_conjunto_calibraciones_inicial(M); cout<<"------------------------------------------------------------------------"<<endl; cout<<"------------------------ CALCULANDO H0 ---------------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; calcular_H0(); for(I = 0; I < MAX_ITER; I++) { cout<<"------------------------------------------------------------------------"<<endl; cout<<"----------------- ITERACION : "<< I <<" -------------------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; cout<<"-----------------AGREGANDO NUEVAS CALiBRACIONES ------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; transformar_calibracion(1); cout<<"------------------------------------------------------------------------"<<endl; cout<<"----------------------------CALCULANDO K -------------------------------"<<endl; cout<<"------------------------------------------------------------------------"<<endl; calcular_K(); sort(conjunto_calibraciones.begin(), conjunto_calibraciones.end()); mostrar_calibraciones(); mostrar_resumen_final(); } sort(conjunto_calibraciones.begin(), conjunto_calibraciones.end()); mostrar_calibraciones(); mostrar_resumen_final(); return 0; }
int main(int argc, char* argv[]) { uint16_t puerto_mdfs; char* ip_mdfs; lista_nodos = list_create(); lista_jobs = list_create(); log_crear("DEBUG", RUTA_LOG, "MaRTA"); leer_archivo_configuracion(&ip_mdfs, &puerto_mdfs, &carga_map, &carga_reduce, &puerto_listen); conectarse_a_mdfs(ip_mdfs, puerto_mdfs); iniciar_server((uint16_t) puerto_listen); return 0; }