aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_addresses_mlp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses_mlp.h')
-rw-r--r--src/ats/gnunet-service-ats_addresses_mlp.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/ats/gnunet-service-ats_addresses_mlp.h b/src/ats/gnunet-service-ats_addresses_mlp.h
index e604919be..62df7a733 100644
--- a/src/ats/gnunet-service-ats_addresses_mlp.h
+++ b/src/ats/gnunet-service-ats_addresses_mlp.h
@@ -136,14 +136,19 @@ struct GAS_MLP_Handle
136 int c_r; 136 int c_r;
137 double co_R; 137 double co_R;
138 138
139 /* ATS Quality metrics
140 * array with GNUNET_ATS_QualityPropertiesCount elements
141 * contains mapping to GNUNET_ATS_Property*/
142 int q[GNUNET_ATS_QualityPropertiesCount];
143
139 /* column index first quality metric (q_1) column */ 144 /* column index first quality metric (q_1) column */
140 int c_q_start; 145 int c_q_start;
141 146
142 /* column index last quality metric (q_n) column */ 147 /* column index last quality metric (q_n) column */
143 int c_q_end; 148 int c_q_end;
144 149
145 /* Array of quality metric coefficients (m elements) */ 150 /* quality metric coefficients*/
146 double *co_Q; 151 double co_Q[GNUNET_ATS_QualityPropertiesCount];
147 152
148 /* number of quality metrics */ 153 /* number of quality metrics */
149 int m; 154 int m;
@@ -172,24 +177,17 @@ struct MLP_information
172/** 177/**
173 * Init the MLP problem solving component 178 * Init the MLP problem solving component
174 * 179 *
180 * @param cfg configuration handle
175 * @param stats the GNUNET_STATISTICS handle 181 * @param stats the GNUNET_STATISTICS handle
176 * @param max_duration maximum numbers of iterations for the LP/MLP Solver 182 * @param max_duration maximum numbers of iterations for the LP/MLP Solver
177 * @param max_iterations maximum time limit for the LP/MLP Solver 183 * @param max_iterations maximum time limit for the LP/MLP Solver
178 * @param D Diversity coefficient
179 * @param U Utilization coefficient
180 * @param R Proportionality coefficient
181 * @param b_min minimum bandwidth assigned to an address
182 * @param n_min minimum number of addresses with bandwidth assigned
183 *
184 * @return struct GAS_MLP_Handle * on success, NULL on fail 184 * @return struct GAS_MLP_Handle * on success, NULL on fail
185 */ 185 */
186struct GAS_MLP_Handle * 186struct GAS_MLP_Handle *
187GAS_mlp_init (const struct GNUNET_STATISTICS_Handle *stats, 187GAS_mlp_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
188 const struct GNUNET_STATISTICS_Handle *stats,
188 struct GNUNET_TIME_Relative max_duration, 189 struct GNUNET_TIME_Relative max_duration,
189 unsigned int max_iterations, 190 unsigned int max_iterations);
190 double D, double U, double R,
191 unsigned int b_min,
192 unsigned int n_min);
193 191
194 192
195/** 193/**