use separate flags option for scale approximation method
[barvinok.git] / barvinok / options.h
blob5453ff5b0bcfbf64bac2c73cd7d3a5a9883679d5
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_APPROX_SIGN_NONE 0
43 #define BV_APPROX_SIGN_APPROX 1
44 #define BV_APPROX_SIGN_LOWER 2
45 #define BV_APPROX_SIGN_UPPER 3
46 int polynomial_approximation;
47 #define BV_APPROX_NONE 0
48 #define BV_APPROX_DROP 1
49 #define BV_APPROX_SCALE 2
50 int approximation_method;
51 #define BV_APPROX_SCALE_FAST (1 << 0)
52 int scale_flags;
54 /* basis reduction options */
55 #define BV_GBR_NONE 0
56 #define BV_GBR_GLPK 1
57 #define BV_GBR_CDD 2
58 int gbr_lp_solver;
60 /* bernstein options */
61 #define BV_BERNSTEIN_NONE 0
62 #define BV_BERNSTEIN_MAX 1
63 #define BV_BERNSTEIN_MIN -1
64 int bernstein_optimize;
66 #define BV_BERNSTEIN_FACTORS 1
67 #define BV_BERNSTEIN_INTERVALS 2
68 int bernstein_recurse;
70 struct barvinok_stats *stats;
73 struct barvinok_options *barvinok_options_new_with_defaults();
74 void barvinok_options_free(struct barvinok_options *options);
76 #define BV_OPT_SPECIALIZATION 256
77 #define BV_OPT_PRIMAL 257
78 #define BV_OPT_TABLE 258
79 #define BV_OPT_GBR 259
80 #define BV_OPT_MAXINDEX 260
81 #define BV_OPT_POLAPPROX 261
82 #define BV_OPT_APPROX 262
83 #define BV_OPT_SCALE 263
84 #define BV_OPT_LAST 263
86 struct argp;
87 extern struct argp barvinok_argp;
89 #if defined(__cplusplus)
91 #endif
93 #endif