2 This file is part of GNUnet.
3 (C) 2011 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file ats/gnunet-service-ats_addresses_mlp.h
23 * @brief ats mlp problem solver
24 * @author Matthias Wachs
25 * @author Christian Grothoff
33 #ifndef GNUNET_SERVICE_ATS_ADDRESSES_MLP_H
34 #define GNUNET_SERVICE_ATS_ADDRESSES_MLP_H
37 #define MLP_MAX_EXEC_DURATION GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 3)
38 #define MLP_MAX_ITERATIONS INT_MAX
43 * GLPK (MLP) problem object
52 * GLPK LP control parameter
54 glp_smcp control_param_lp;
57 * GLPK LP control parameter
59 glp_iocp control_param_mlp;
62 * Maximum execution time per problem solving
64 struct GNUNET_TIME_Relative max_exec_duration;
67 * Maximum number of LP iterations per problem solving
69 unsigned int max_iterations;
74 * Init the MLP problem solving component
75 * @param max_duration maximum numbers of iterations for the LP/MLP Solver
76 * @param max_iterations maximum time limit for the LP/MLP Solver
77 * @return GNUNET_OK on success, GNUNET_SYSERR on fail
80 GAS_mlp_init (struct GNUNET_TIME_Relative max_duration, unsigned int max_iterations);
83 * Update address in the MLP problem
86 GAS_mlp_update (struct ATS_Address *address);
89 * Shutdown the MLP problem solving component
95 /* end of gnunet-service-ats_addresses_mlp.h */