File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/src/mip/diversity/lns Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ void rins_t<i_t, f_t>::run_rins()
141141 vars_to_fix.begin (),
142142 [lpopt = lp_opt_device.data (),
143143 pb = problem_copy->view (),
144- incumbent = best_sol.assignment .data ()] __device__ (i_t var_idx) {
144+ incumbent = best_sol.assignment .data ()] __device__ (i_t var_idx) -> bool {
145145 return pb.integer_equal (lpopt[var_idx], incumbent[var_idx]);
146146 });
147147 vars_to_fix.resize (end - vars_to_fix.begin (), rins_handle.get_stream ());
@@ -167,7 +167,7 @@ void rins_t<i_t, f_t>::run_rins()
167167 cuopt_assert (thrust::all_of (rins_handle.get_thrust_policy (),
168168 vars_to_fix.begin (),
169169 vars_to_fix.end (),
170- [pb = problem_copy->view ()] __device__ (i_t var_idx) {
170+ [pb = problem_copy->view ()] __device__ (i_t var_idx) -> bool {
171171 return pb.is_integer_var (var_idx);
172172 }),
173173 " All variables to fix must be integer variables" );
You can’t perform that action at this time.
0 commit comments