coin-Bcp
MKC_vargen.hpp
Go to the documentation of this file.
1 // Copyright (C) 2000, International Business Machines
2 // Corporation and others. All Rights Reserved.
3 #ifndef _MKC_VARGEN_H
4 #define _MKC_VARGEN_H
5 
6 #include <cstdio>
7 
8 #include "BCP_vector.hpp"
9 
10 class MKC_knapsack_set;
12 class MKC_var;
13 class BCP_var;
14 
15 double
17  const MKC_knapsack_fixing* ks_fixings,
18  BCP_vec<MKC_var*>* enumerated_ks,
19  const int max_enumerated_size,
20  const double* dual,
21  const double rc_bound,
22  const double exact_red_cost,
23  const bool print_best_dj,
24  const bool fall_back_to_exact);
25 
26 void
28  const MKC_knapsack_fixing* ks_fixings,
29  BCP_vec<MKC_var*>* enumerated_ks,
30  const int max_enumerated_size,
31  const double* dual,
32  const double gap,
33  BCP_vec<BCP_var*>& new_vars,
34  const double rc_bound,
35  const bool for_all_knapsack,
36  const bool all_encountered_var,
37  const bool print_best_dj,
38  const bool fall_back_to_exact,
39  const int index, const int iternum);
40 
41 double
42 MKC_generate_vars_one_ks(const int ks_num, const int ks_ind,
43  MKC_knapsack& ks_orig,
44  const MKC_knapsack_fixing& ksf,
45  const double* dual,
46  BCP_vec<BCP_var*>& new_vars,
47  const double rc_bound,
48  const int what_to_do,
49  FILE* log);
50 
51 void
52 MKC_do_the_knapsack(const int clr[2],
53  const MKC_knapsack_entry * sublist,
54  const int sublist_size,
55  const MKC_knapsack& ks,
56  const MKC_knapsack_fixing& ksf,
57  const int ks_ind,
58  const int ks_num,
59  double& cutoff,
60  BCP_vec<BCP_var*>& new_vars,
61  int* tmp_chosen,
62  const int what_to_do);
63 
64 void
66  BCP_vec<MKC_var*>* enumerated_ks,
67  const int max_enumerated_size,
68  const double* dual,
69  const double gap, const double rc_bound,
70  BCP_vec<MKC_var*>& new_vars,
71  const bool print_best_dj);
72 
73 #endif
void MKC_check_enumerated_variables(const MKC_knapsack_set &kss, BCP_vec< MKC_var * > *enumerated_ks, const int max_enumerated_size, const double *dual, const double gap, const double rc_bound, BCP_vec< MKC_var * > &new_vars, const bool print_best_dj)
double MKC_compute_ks_upper_bound(const MKC_knapsack_set &kss, const MKC_knapsack_fixing *ks_fixings, BCP_vec< MKC_var * > *enumerated_ks, const int max_enumerated_size, const double *dual, const double rc_bound, const double exact_red_cost, const bool print_best_dj, const bool fall_back_to_exact)
double MKC_generate_vars_one_ks(const int ks_num, const int ks_ind, MKC_knapsack &ks_orig, const MKC_knapsack_fixing &ksf, const double *dual, BCP_vec< BCP_var * > &new_vars, const double rc_bound, const int what_to_do, FILE *log)
Abstract base class that defines members common to all types of variables.
Definition: BCP_var.hpp:28
void MKC_do_the_knapsack(const int clr[2], const MKC_knapsack_entry *sublist, const int sublist_size, const MKC_knapsack &ks, const MKC_knapsack_fixing &ksf, const int ks_ind, const int ks_num, double &cutoff, BCP_vec< BCP_var * > &new_vars, int *tmp_chosen, const int what_to_do)
void MKC_generate_variables(const MKC_knapsack_set &kss, const MKC_knapsack_fixing *ks_fixings, BCP_vec< MKC_var * > *enumerated_ks, const int max_enumerated_size, const double *dual, const double gap, BCP_vec< BCP_var * > &new_vars, const double rc_bound, const bool for_all_knapsack, const bool all_encountered_var, const bool print_best_dj, const bool fall_back_to_exact, const int index, const int iternum)