(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 12 Apr 2011 13:52:08 +0000 (13:52 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 12 Apr 2011 13:52:08 +0000 (13:52 +0000)
src/transport/gnunet-service-transport.c

index 48dd55de1cc3147279a39873f70004cbeeef54c2..004ff02f3d19601ec2a3b6734c2cdd675b05a15f 100644 (file)
@@ -5879,7 +5879,7 @@ static void ats_solve_problem (unsigned int max_it, unsigned int  max_dur, unsig
 {
        int result;
        int solution;
-
+#if HAVE_LIBGLPK
        // Solving simplex
        glp_prob *prob = ats->prob;
        /*
@@ -5974,6 +5974,7 @@ static void ats_solve_problem (unsigned int max_it, unsigned int  max_dur, unsig
        GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s %f\n", glp_get_col_name(prob,2*c_mechs+2), glp_get_col_prim(prob,2*c_mechs+2));
        GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "%s %f\n", glp_get_col_name(prob,2*c_mechs+3), glp_get_col_prim(prob,2*c_mechs+3));
 #endif
+#endif
 
 }
 
@@ -6364,7 +6365,7 @@ static int ats_create_problem (double D, double U, double R, int v_b_min, int v_
        glp_add_rows(ats->prob, 1);
 #if VERBOSE_ATS
        GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "bounds [row]=[%i] \n",row_index);
-#endif#endif
+#endif
        glp_set_row_bnds(ats->prob, row_index, GLP_FX, 0.0, 0.0);
        for (c=1; c<=c_mechs; c++)
        {