@@ -578,9 +578,25 @@ void getUserParamsFromOptions(const HighsOptions& options,
578578 intParam[N_LOG_LEVEL] = getCupdlpLogLevel (options);
579579 //
580580 ifChangeIntParam[IF_SCALING] = true ;
581- cupdlp_int scaling_off = options. pdlp_features_off & kPdlpScalingOff ;
582- cupdlp_int scaling_on = scaling_off == 0 ? 1 : 0 ;
581+ cupdlp_int scaling_on =
582+ (options. pdlp_features_off & kPdlpScalingOff ) == 0 ? 1 : 0 ;
583583 intParam[IF_SCALING] = scaling_on;
584+ if (scaling_on == 0 )
585+ highsLogUser (options.log_options , HighsLogType::kInfo ,
586+ " PDLP: Scaling off\n " );
587+ //
588+ ifChangeIntParam[E_LINE_SEARCH_METHOD] = true ;
589+ cupdlp_int adaptive_lineasearch =
590+ (options.pdlp_features_off & kPdlpAdaptiveStepSizeOff ) == 0 ? 1 : 0 ;
591+ intParam[E_LINE_SEARCH_METHOD] = adaptive_lineasearch;
592+ if (adaptive_lineasearch == 1 ) {
593+ intParam[E_LINE_SEARCH_METHOD] = PDHG_ADAPTIVE_LINESEARCH;
594+ } else {
595+ intParam[E_LINE_SEARCH_METHOD] = PDHG_FIXED_LINESEARCH;
596+ }
597+ if (adaptive_lineasearch == 0 )
598+ highsLogUser (options.log_options , HighsLogType::kInfo ,
599+ " PDLP: Adaptive line search off\n " );
584600 //
585601 ifChangeFloatParam[D_PRIMAL_TOL] = true ;
586602 floatParam[D_PRIMAL_TOL] = options.primal_feasibility_tolerance ;
@@ -595,7 +611,13 @@ void getUserParamsFromOptions(const HighsOptions& options,
595611 floatParam[D_TIME_LIM] = options.time_limit ;
596612 //
597613 ifChangeIntParam[E_RESTART_METHOD] = true ;
598- intParam[E_RESTART_METHOD] = int (options.pdlp_e_restart_method );
614+ cupdlp_int restart_on =
615+ (options.pdlp_features_off & kPdlpRestartOff ) == 0 ? 1 : 0 ;
616+ if (options.pdlp_e_restart_method == 0 ) restart_on = 0 ;
617+ intParam[E_RESTART_METHOD] = restart_on;
618+ if (restart_on == 0 )
619+ highsLogUser (options.log_options , HighsLogType::kInfo ,
620+ " PDLP: Restart off\n " );
599621 //
600622 ifChangeIntParam[I_INF_NORM_ABS_LOCAL_TERMINATION] = true ;
601623 intParam[I_INF_NORM_ABS_LOCAL_TERMINATION] = !options.pdlp_native_termination ;
0 commit comments