Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cpp/src/mip_heuristics/feasibility_jump/feasibility_jump.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ struct fj_hyper_parameters_t {
double small_move_tabu_threshold = 1e-6;
int small_move_tabu_tenure = 4;

int two_opt_max_rows = 4;
int two_opt_max_row_vars = 256;
int two_opt_max_pairs = 256;

// load-balancing related settings
int old_codepath_total_var_to_relvar_ratio_threshold = 200;
int load_balancing_codepath_min_varcount = 3200;
Expand Down Expand Up @@ -198,6 +202,9 @@ struct fj_move_candidate_t {
template <typename i_t, typename f_t>
struct fj_cpu_climber_t;

template <typename i_t, typename f_t>
class probing_cache_t;

template <typename i_t, typename f_t>
class fj_t {
public:
Expand All @@ -215,6 +222,7 @@ class fj_t {
const std::vector<f_t>& right_weights,
f_t objective_weight,
std::atomic<bool>& preemption_flag,
const probing_cache_t<i_t, f_t>* probing_cache,
fj_settings_t settings = fj_settings_t{},
bool randomize_params = false);
i_t alloc_max_climbers(i_t desired_climbers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ HDI std::pair<f_t, f_t> feas_score_constraint(
base_feas += (i_t)(cstr_weight * fj.settings->parameters.excess_improvement_weight);
}
// simple worsening
else if (!old_sat && !new_sat && old_lhs <= new_lhs) {
else if (!old_sat && !new_sat && old_lhs < new_lhs) {
cuopt_assert(old_viol && new_viol, "");
base_feas -= (i_t)(cstr_weight * fj.settings->parameters.excess_improvement_weight);
}
Expand Down
Loading
Loading