@@ -698,23 +698,24 @@ void problem_t<i_t, f_t>::check_problem_representation(bool check_transposed,
698698 return true ;
699699 }),
700700 " Some variables aren't referenced in the appropriate indice tables" );
701- cuopt_assert (thrust::all_of (handle_ptr->get_thrust_policy (),
702- thrust::make_zip_iterator (thrust::make_counting_iterator<i_t >(0 ),
703- is_binary_variable.cbegin ()),
704- thrust::make_zip_iterator (
705- thrust::make_counting_iterator<i_t >(is_binary_variable.size ()),
701+ cuopt_assert (
702+ thrust::all_of (
703+ handle_ptr->get_thrust_policy (),
704+ thrust::make_zip_iterator (thrust::make_counting_iterator<i_t >(0 ),
705+ is_binary_variable.cbegin ()),
706+ thrust::make_zip_iterator (thrust::make_counting_iterator<i_t >(is_binary_variable.size ()),
706707 is_binary_variable.cend ()),
707- [types = variable_types.data (),
708- vars_bnd = make_span (variable_bounds),
709- v = view ()] __device__ (const thrust::tuple<int , int > tuple) {
710- i_t idx = thrust::get<0 >(tuple);
711- i_t pred = thrust::get<1 >(tuple);
712- auto bounds = vars_bnd[idx];
713- return pred == (types[idx] != var_t ::CONTINUOUS &&
714- v.integer_equal (get_lower (bounds), 0 .) &&
715- v.integer_equal (get_upper (bounds), 1 .));
716- }),
717- " The binary variable table is incorrect." );
708+ [types = variable_types.data (),
709+ vars_bnd = make_span (variable_bounds),
710+ v = view ()] __device__ (const thrust::tuple<int , int > tuple) -> bool {
711+ i_t idx = thrust::get<0 >(tuple);
712+ i_t pred = thrust::get<1 >(tuple);
713+ auto bounds = vars_bnd[idx];
714+ return pred ==
715+ (types[idx] != var_t ::CONTINUOUS && v.integer_equal (get_lower (bounds), 0 .) &&
716+ v.integer_equal (get_upper (bounds), 1 .));
717+ }),
718+ " The binary variable table is incorrect." );
718719 if (!empty) {
719720 cuopt_assert (is_binary_pb == (n_variables == thrust::count (handle_ptr->get_thrust_policy (),
720721 is_binary_variable.begin (),
0 commit comments