glpnet.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* glpnet.h (graph and network algorithms) */
  2. /***********************************************************************
  3. * This code is part of GLPK (GNU Linear Programming Kit).
  4. *
  5. * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
  6. * 2009, 2010 Andrew Makhorin, Department for Applied Informatics,
  7. * Moscow Aviation Institute, Moscow, Russia. All rights reserved.
  8. * E-mail: <mao@gnu.org>.
  9. *
  10. * GLPK is free software: you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * GLPK is distributed in the hope that it will be useful, but WITHOUT
  16. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  17. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  18. * License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with GLPK. If not, see <http://www.gnu.org/licenses/>.
  22. ***********************************************************************/
  23. #ifndef GLPNET_H
  24. #define GLPNET_H
  25. #define mc21a _glp_mc21a
  26. int mc21a(int n, const int icn[], const int ip[], const int lenr[],
  27. int iperm[], int pr[], int arp[], int cv[], int out[]);
  28. /* permutations for zero-free diagonal */
  29. #define mc13d _glp_mc13d
  30. int mc13d(int n, const int icn[], const int ip[], const int lenr[],
  31. int ior[], int ib[], int lowl[], int numb[], int prev[]);
  32. /* permutations to block triangular form */
  33. #define okalg _glp_okalg
  34. int okalg(int nv, int na, const int tail[], const int head[],
  35. const int low[], const int cap[], const int cost[], int x[],
  36. int pi[]);
  37. /* out-of-kilter algorithm */
  38. #define ffalg _glp_ffalg
  39. void ffalg(int nv, int na, const int tail[], const int head[],
  40. int s, int t, const int cap[], int x[], char cut[]);
  41. /* Ford-Fulkerson algorithm */
  42. #define wclique _glp_wclique
  43. int wclique(int n, const int w[], const unsigned char a[], int ind[]);
  44. /* find maximum weight clique with Ostergard's algorithm */
  45. #define kellerman _glp_kellerman
  46. int kellerman(int n, int (*func)(void *info, int i, int ind[]),
  47. void *info, void /* glp_graph */ *H);
  48. /* cover edges by cliques with Kellerman's heuristic */
  49. #endif
  50. /* eof */