File: glpk_java.h

package info (click to toggle)
glpk-java 1.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 3,580 kB
  • sloc: sh: 3,609; java: 1,794; xml: 259; makefile: 154; ansic: 35
file content (45 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download | duplicates (3)
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
/* File glpk_java.h
 * 
 * This file contains definitions that are needed for compiling code explicitly
 * added to GLPK for Java, and which shall be wrapped by Swig.
 */
#ifndef GLPK_JAVA_H
#define GLPK_JAVA_H

#define GLP_JAVA_MSG_LVL_OFF 0
#define GLP_JAVA_MSG_LVL_ALL 1
void glp_java_error(char *message);
void glp_java_set_msg_lvl(int msg_lvl);
void glp_java_set_numeric_locale(const char *locale);

typedef struct {
   double cap;  // arc capacity
   double cost; // arc cost
   double low;  // lower bound
   double rc;   // reduced cost
   double x;    // arc flow
} glp_java_arc_data;

typedef struct  {
   int    cut; // 0: node is unlabeled, 1: node is labeled
   double pi;  // node potential
   double rhs; // supply/demand value
   int    set; // 0: vertex is in set R, 1: vertex is in set S
} glp_java_vertex_data;

glp_java_arc_data *glp_java_arc_get_data(const glp_arc *arc);
glp_java_vertex_data *glp_java_vertex_data_get( const glp_graph *G, const int i);
glp_java_vertex_data *glp_java_vertex_get_data( const glp_vertex *v);
glp_vertex *glp_java_vertex_get( const glp_graph *G, const int i );

struct glp_prob {
    int hidden_internal;
};
struct glp_tran {
    int hidden_internal;
};
struct glp_tree {
    int hidden_internal;
};

#endif // GLPK_JAVA_H