barvinok_enumerate: optionally compute a polynomial approximation
[barvinok.git] / barvinok / options.h
blob91ed8ad8ebbd2a7674cf8921373dfa64df71e186
1 #ifndef BARVINOK_OPTIONS_H
2 #define BARVINOK_OPTIONS_H
4 #include <stdio.h>
6 #if defined(__cplusplus)
7 extern "C" {
8 #endif
10 struct barvinok_stats {
11 long base_cones;
14 void barvinok_stats_clear(struct barvinok_stats *stats);
15 void barvinok_stats_print(struct barvinok_stats *stats, FILE *out);
17 struct barvinok_options {
18 /* PolyLib options */
19 unsigned MaxRays;
21 /* NTL options */
22 /* LLL reduction parameter delta=LLL_a/LLL_b */
23 long LLL_a;
24 long LLL_b;
26 /* barvinok options */
28 * 0: no
29 * 1: depth first
30 * 2: breadth first
32 #define BV_SPECIALIZATION_BF 2
33 #define BV_SPECIALIZATION_DF 1
34 #define BV_SPECIALIZATION_RANDOM 0
35 int incremental_specialization;
37 unsigned long max_index;
38 int primal;
39 int lookup_table;
40 int count_sample_infinite;
42 #define BV_POLAPPROX_NONE 0
43 #define BV_POLAPPROX_PRE_LOWER 1
44 #define BV_POLAPPROX_PRE_UPPER 2
45 #define BV_POLAPPROX_PRE_APPROX 3
46 int polynomial_approximation;
48 /* basis reduction options */
49 #define BV_GBR_NONE 0
50 #define BV_GBR_GLPK 1
51 #define BV_GBR_CDD 2
52 int gbr_lp_solver;
54 struct barvinok_stats *stats;
57 struct barvinok_options *barvinok_options_new_with_defaults();
58 void barvinok_options_free(struct barvinok_options *options);
60 #define BV_OPT_SPECIALIZATION 256
61 #define BV_OPT_PRIMAL 257
62 #define BV_OPT_TABLE 258
63 #define BV_OPT_GBR 259
64 #define BV_OPT_MAXINDEX 260
65 #define BV_OPT_POLAPPROX 261
66 #define BV_OPT_LAST 261
68 struct argp;
69 extern struct argp barvinok_argp;
71 #if defined(__cplusplus)
73 #endif
75 #endif