forked from sassoftware/cvrpsep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mxf.h
59 lines (49 loc) · 1.78 KB
/
mxf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* SAS modified this file. */
/* (C) Copyright 2003 Jens Lysgaard. All rights reserved. */
/* OSI Certified Open Source Software */
/* This software is licensed under the Common Public License Version 1.0 */
#ifndef _H_MXF
#define _H_MXF
typedef void *MaxFlowPtr;
void MXF_WriteArcList(MaxFlowPtr Ptr);
void MXF_WriteNodeList(MaxFlowPtr Ptr);
void MXF_InitMem(MaxFlowPtr *Ptr,
int TotalNodes,
int TotalArcs);
void MXF_FreeMem(MaxFlowPtr Ptr);
void MXF_ClearNodeList(MaxFlowPtr Ptr);
void MXF_ClearArcList(MaxFlowPtr Ptr);
void MXF_SetNodeListSize(MaxFlowPtr Ptr,
int TotalNodes);
void MXF_AddArc(MaxFlowPtr Ptr,
int Tail,
int Head,
double Capacity);
void MXF_ChgArcCap(MaxFlowPtr Ptr,
int Tail,
int Head,
double Capacity);
void MXF_CreateMates(MaxFlowPtr Ptr);
void MXF_CreateArcMap(MaxFlowPtr Ptr);
void MXF_SolveMaxFlow(MaxFlowPtr Ptr,
char InitByZeroFlow,
int Source,
int Sink,
double *CutValue,
char GetSinkSide,
int *NodeListSize,
int *NodeList);
void MXF_GetNetworkSize(MaxFlowPtr Ptr,
int *Nodes,
int *Arcs);
void MXF_GetCurrentFlow(MaxFlowPtr Ptr,
double *ArcResidualCapacity,
double *NodeExcess);
void MXF_SetFlow(MaxFlowPtr Ptr,
double *ArcResidualCapacity,
double *NodeExcess);
void MXF_ComputeGHCutTree(MaxFlowPtr Ptr,
int CenterNode,
double *CutValue,
int *NextOnPath);
#endif