@@ -27,16 +27,12 @@ limitations under the License.
2727__global__ void scale_variables_kernel (double *__restrict__ objective_vector,
2828 double *__restrict__ variable_lower_bound,
2929 double *__restrict__ variable_upper_bound,
30- double *__restrict__ variable_lower_bound_finite_val,
31- double *__restrict__ variable_upper_bound_finite_val,
3230 double *__restrict__ initial_primal_solution,
3331 const double *__restrict__ variable_rescaling,
3432 const double *__restrict__ inverse_variable_rescaling,
3533 int num_variables);
3634__global__ void scale_constraints_kernel (double *__restrict__ constraint_lower_bound,
3735 double *__restrict__ constraint_upper_bound,
38- double *__restrict__ constraint_lower_bound_finite_val,
39- double *__restrict__ constraint_upper_bound_finite_val,
4036 double *__restrict__ initial_dual_solution,
4137 const double *__restrict__ constraint_rescaling,
4238 const double *__restrict__ inverse_constraint_rescaling,
@@ -70,8 +66,6 @@ __global__ void reduce_bound_norm_sq_kernel(
7066__global__ void scale_bounds_kernel (
7167 double *__restrict__ constraint_lower_bound,
7268 double *__restrict__ constraint_upper_bound,
73- double *__restrict__ constraint_lower_bound_finite_val,
74- double *__restrict__ constraint_upper_bound_finite_val,
7569 double *__restrict__ initial_dual_solution,
7670 int num_constraints,
7771 double constraint_scale,
@@ -80,8 +74,6 @@ __global__ void scale_objective_kernel(
8074 double *__restrict__ objective_vector,
8175 double *__restrict__ variable_lower_bound,
8276 double *__restrict__ variable_upper_bound,
83- double *__restrict__ variable_lower_bound_finite_val,
84- double *__restrict__ variable_upper_bound_finite_val,
8577 double *__restrict__ initial_primal_solution,
8678 int num_variables,
8779 double constraint_scale,
@@ -108,8 +100,6 @@ static void scale_problem(
108100 state->objective_vector ,
109101 state->variable_lower_bound ,
110102 state->variable_upper_bound ,
111- state->variable_lower_bound_finite_val ,
112- state->variable_upper_bound_finite_val ,
113103 state->initial_primal_solution ,
114104 variable_rescaling,
115105 inverse_variable_rescaling,
@@ -118,8 +108,6 @@ static void scale_problem(
118108 scale_constraints_kernel<<<state->num_blocks_dual, THREADS_PER_BLOCK>>> (
119109 state->constraint_lower_bound ,
120110 state->constraint_upper_bound ,
121- state->constraint_lower_bound_finite_val ,
122- state->constraint_upper_bound_finite_val ,
123111 state->initial_dual_solution ,
124112 constraint_rescaling,
125113 inverse_constraint_rescaling,
@@ -248,8 +236,6 @@ static void bound_objective_rescaling(
248236 scale_bounds_kernel<<<state->num_blocks_dual, THREADS_PER_BLOCK>>> (
249237 state->constraint_lower_bound ,
250238 state->constraint_upper_bound ,
251- state->constraint_lower_bound_finite_val ,
252- state->constraint_upper_bound_finite_val ,
253239 state->initial_dual_solution ,
254240 num_constraints,
255241 constraint_scale,
@@ -259,8 +245,6 @@ static void bound_objective_rescaling(
259245 state->objective_vector ,
260246 state->variable_lower_bound ,
261247 state->variable_upper_bound ,
262- state->variable_lower_bound_finite_val ,
263- state->variable_upper_bound_finite_val ,
264248 state->initial_primal_solution ,
265249 num_variables,
266250 constraint_scale,
@@ -326,8 +310,6 @@ rescale_info_t *rescale_problem(
326310__global__ void scale_variables_kernel (double *__restrict__ objective_vector,
327311 double *__restrict__ variable_lower_bound,
328312 double *__restrict__ variable_upper_bound,
329- double *__restrict__ variable_lower_bound_finite_val,
330- double *__restrict__ variable_upper_bound_finite_val,
331313 double *__restrict__ initial_primal_solution,
332314 const double *__restrict__ variable_rescaling,
333315 const double *__restrict__ inverse_variable_rescaling,
@@ -341,15 +323,11 @@ __global__ void scale_variables_kernel(double *__restrict__ objective_vector,
341323 objective_vector[j] *= inv_dj;
342324 variable_lower_bound[j] *= dj;
343325 variable_upper_bound[j] *= dj;
344- variable_lower_bound_finite_val[j] *= dj;
345- variable_upper_bound_finite_val[j] *= dj;
346326 initial_primal_solution[j] *= dj;
347327}
348328
349329__global__ void scale_constraints_kernel (double *__restrict__ constraint_lower_bound,
350330 double *__restrict__ constraint_upper_bound,
351- double *__restrict__ constraint_lower_bound_finite_val,
352- double *__restrict__ constraint_upper_bound_finite_val,
353331 double *__restrict__ initial_dual_solution,
354332 const double *__restrict__ constraint_rescaling,
355333 const double *__restrict__ inverse_constraint_rescaling,
@@ -362,8 +340,6 @@ __global__ void scale_constraints_kernel(double *__restrict__ constraint_lower_b
362340 double ei = constraint_rescaling[i];
363341 constraint_lower_bound[i] *= inv_ei;
364342 constraint_upper_bound[i] *= inv_ei;
365- constraint_lower_bound_finite_val[i] *= inv_ei;
366- constraint_upper_bound_finite_val[i] *= inv_ei;
367343 initial_dual_solution[i] *= ei;
368344}
369345
@@ -504,8 +480,6 @@ __global__ void reduce_bound_norm_sq_kernel(
504480__global__ void scale_bounds_kernel (
505481 double *__restrict__ constraint_lower_bound,
506482 double *__restrict__ constraint_upper_bound,
507- double *__restrict__ constraint_lower_bound_finite_val,
508- double *__restrict__ constraint_upper_bound_finite_val,
509483 double *__restrict__ initial_dual_solution,
510484 int num_constraints,
511485 double constraint_scale,
@@ -516,17 +490,13 @@ __global__ void scale_bounds_kernel(
516490 return ;
517491 constraint_lower_bound[i] *= constraint_scale;
518492 constraint_upper_bound[i] *= constraint_scale;
519- constraint_lower_bound_finite_val[i] *= constraint_scale;
520- constraint_upper_bound_finite_val[i] *= constraint_scale;
521493 initial_dual_solution[i] *= objective_scale;
522494}
523495
524496__global__ void scale_objective_kernel (
525497 double *__restrict__ objective_vector,
526498 double *__restrict__ variable_lower_bound,
527499 double *__restrict__ variable_upper_bound,
528- double *__restrict__ variable_lower_bound_finite_val,
529- double *__restrict__ variable_upper_bound_finite_val,
530500 double *__restrict__ initial_primal_solution,
531501 int num_variables,
532502 double constraint_scale,
@@ -537,8 +507,6 @@ __global__ void scale_objective_kernel(
537507 return ;
538508 variable_lower_bound[j] *= constraint_scale;
539509 variable_upper_bound[j] *= constraint_scale;
540- variable_lower_bound_finite_val[j] *= constraint_scale;
541- variable_upper_bound_finite_val[j] *= constraint_scale;
542510 objective_vector[j] *= objective_scale;
543511 initial_primal_solution[j] *= constraint_scale;
544512}
0 commit comments