Skip to content

Commit a26b889

Browse files
committed
Formatted
1 parent 4bd175b commit a26b889

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

highs/interfaces/highs_c_api.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,10 @@ double Highs_getObjectiveValue(const void* highs) {
613613
return ((Highs*)highs)->getObjectiveValue();
614614
}
615615

616-
HighsInt Highs_getDualObjectiveValue(const void* highs, double* dual_objective_value) {
617-
return (HighsInt)((Highs*)highs)->getDualObjectiveValue(*dual_objective_value);
616+
HighsInt Highs_getDualObjectiveValue(const void* highs,
617+
double* dual_objective_value) {
618+
return (HighsInt)((Highs*)highs)
619+
->getDualObjectiveValue(*dual_objective_value);
618620
}
619621

620622
HighsInt Highs_getBasicVariables(const void* highs, HighsInt* basic_variables) {
@@ -1359,11 +1361,11 @@ HighsInt Highs_getIis(void* highs, HighsInt* iis_num_col, HighsInt* iis_num_row,
13591361
}
13601362

13611363
HighsInt Highs_getObjectiveBoundScaling(void* highs,
1362-
HighsInt* suggested_objective_scale,
1363-
HighsInt* suggested_bound_scale) {
1364-
return (HighsInt)((Highs*)highs)->
1365-
getObjectiveBoundScaling(*suggested_objective_scale,
1366-
*suggested_bound_scale);
1364+
HighsInt* suggested_objective_scale,
1365+
HighsInt* suggested_bound_scale) {
1366+
return (HighsInt)((Highs*)highs)
1367+
->getObjectiveBoundScaling(*suggested_objective_scale,
1368+
*suggested_bound_scale);
13671369
}
13681370

13691371
HighsInt Highs_getIisLp(const void* highs, const HighsInt a_format,

highs/interfaces/highs_c_api.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,8 @@ double Highs_getObjectiveValue(const void* highs);
10621062
*
10631063
* @returns A `kHighsStatus` constant indicating whether the call succeeded.
10641064
*/
1065-
HighsInt Highs_getDualObjectiveValue(const void* highs,
1066-
double* dual_objective_value);
1065+
HighsInt Highs_getDualObjectiveValue(const void* highs,
1066+
double* dual_objective_value);
10671067

10681068
/**
10691069
* Get the indices of the rows and columns that make up the basis matrix ``B``
@@ -2427,14 +2427,16 @@ HighsInt Highs_getIis(void* highs, HighsInt* iis_num_col, HighsInt* iis_num_row,
24272427
* coefficients and bound values
24282428
*
24292429
* @param highs A pointer to the Highs instance.
2430-
* @param HighsInt* suggested_objective_scale The suggested value of user_cost_scale
2431-
* @param HighsInt* suggested_bound_scale The suggested value of user_bound_scale
2430+
* @param HighsInt* suggested_objective_scale The suggested value of
2431+
* user_cost_scale
2432+
* @param HighsInt* suggested_bound_scale The suggested value of
2433+
* user_bound_scale
24322434
*
24332435
* @returns A `kHighsStatus` constant indicating whether the call succeeded.
24342436
*/
24352437
HighsInt Highs_getObjectiveBoundScaling(void* highs,
2436-
HighsInt* suggested_objective_scale,
2437-
HighsInt* suggested_bound_scale);
2438+
HighsInt* suggested_objective_scale,
2439+
HighsInt* suggested_bound_scale);
24382440

24392441
/**
24402442
* Releases all resources held by the global scheduler instance.

highs/lp_data/HighsInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3032,7 +3032,7 @@ HighsStatus Highs::userScaleSolution(HighsUserScaleData& data,
30323032
if (!update_kkt) return return_status;
30333033
// In scaling the objective function value, have to consider the offset
30343034
double objective_function_value =
3035-
info_.objective_function_value - model_.lp_.offset_;
3035+
info_.objective_function_value - model_.lp_.offset_;
30363036
objective_function_value *= (bound_scale_value * objective_scale_value);
30373037
objective_function_value += model_.lp_.offset_;
30383038
info_.objective_function_value = objective_function_value;

0 commit comments

Comments
 (0)