Skip to content

Commit

Permalink
Removed print statement from HFactor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Feb 1, 2023
1 parent bcf6c0b commit f797c1a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

project(HIGHS VERSION 1.4 LANGUAGES CXX C)
set(HIGHS_VERSION_PATCH 0)
set(HIGHS_VERSION_PATCH 2)

# use C++11 standard
set(CMAKE_CXX_STANDARD 11)
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/highspy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
libraries=['highs']))

setup(name='highspy',
version='1.4.0.dev0',
version='1.4.2',
packages=find_packages(),
description='Python interface to HiGHS',
maintainer_email='highsopt@gmail.com',
Expand Down
3 changes: 2 additions & 1 deletion src/io/FilereaderLp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ void FilereaderLp::writeToFile(FILE* file, const char* format, ...) {
va_list argptr;
va_start(argptr, format);
char stringbuffer[LP_MAX_LINE_LENGTH + 1];
HighsInt tokenlength = vsnprintf(stringbuffer, sizeof stringbuffer, format, argptr);
HighsInt tokenlength =
vsnprintf(stringbuffer, sizeof stringbuffer, format, argptr);
if (this->linelength + tokenlength >= LP_MAX_LINE_LENGTH) {
fprintf(file, "\n");
fprintf(file, "%s", stringbuffer);
Expand Down
3 changes: 0 additions & 3 deletions src/util/HFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,6 @@ HighsInt HFactor::buildKernel() {
HighsInt iterations_left = kernel_dim - search_k + 1;
double remaining_time_bound = average_iteration_time * iterations_left;
double total_time_bound = current_time + remaining_time_bound;
printf("%d; Iter: Time %11.4g; average = %11.4g; Bound = %11.4g\n",
search_k, iteration_time, average_iteration_time,
total_time_bound);
if (current_time > this->time_limit_ ||
total_time_bound > this->time_limit_)
return kBuildKernelReturnTimeout;
Expand Down

0 comments on commit f797c1a

Please sign in to comment.