Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install nauty
run: sudo apt-get install -y libnauty2-dev
- name: Install dependencies
run: sudo apt-get -y install liblapack-dev libbz2-dev libnauty-dev
if: matrix.os == 'ubuntu-latest'
- name: Install CLP (MacOS)
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15.0)
cmake_minimum_required(VERSION 3.28)

project(StableSolver LANGUAGES CXX)

Expand Down
4 changes: 2 additions & 2 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FetchContent_MakeAvailable(Boost)
FetchContent_Declare(
optimizationtools
GIT_REPOSITORY https://github.com/fontanf/optimizationtools.git
GIT_TAG a0973a7dfa64b9d305f75879c80d252e714ce2cf
GIT_TAG 65c8e11224aac1cf6e6e33c040b6b895341ad156
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../optimizationtools/"
EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(optimizationtools)
Expand All @@ -39,7 +39,7 @@ endif()
FetchContent_Declare(
mathoptsolverscmake
GIT_REPOSITORY https://github.com/fontanf/mathoptsolverscmake.git
GIT_TAG 80cd13a843e2c10684abbfe76cf9aae0d71ff79d
GIT_TAG 4472814a28a40f4d861ccd757e140835c3a31bd0
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../mathoptsolverscmake/"
EXCLUDE_FROM_ALL)
FetchContent_MakeAvailable(mathoptsolverscmake)
14 changes: 13 additions & 1 deletion scripts/download_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import os
import shutil
import pathlib
import time
import sys


parser = argparse.ArgumentParser(description='')
Expand All @@ -13,8 +15,18 @@
help='')
args = parser.parse_args()

def download(id):
for _ in range(3):
try:
gdown.download(id=id, output="data.7z")
except:
time.sleep(10)
continue
return
sys.exit(1)

if args.data is None:
gdown.download(id="1OUJqeX9IMlRczq4Ycta-lppcnGgFJd2E", output="data.7z")
download("1OUJqeX9IMlRczq4Ycta-lppcnGgFJd2E")
os.system("7z x data.7z")
pathlib.Path("data.7z").unlink()
shutil.copytree("stable", "data", dirs_exist_ok=True)
2 changes: 1 addition & 1 deletion src/clique/algorithms/local_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ const Output stablesolver::clique::local_search(
llsbfls_parameters.initial_solution_ids = std::vector<Counter>(
llsbfls_parameters.number_of_threads_2, 0);
bool end = false;
llsbfls_parameters.timer.set_end_boolean(&end);
llsbfls_parameters.timer.add_end_boolean(&end);
llsbfls_parameters.new_solution_callback
= [&instance, &output, &algorithm_formatter, &end](
const localsearchsolver::Output<LocalScheme>& lss_output)
Expand Down
Loading