Skip to content

GSoC 2022: Manas Sivakumar Week 4 #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 10, 2022
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
9 changes: 1 addition & 8 deletions .github/workflows/boost_version.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: Boost supported versions

on:
push:
branches-ignore:
- 'translations_*'
tags: []
pull_request:
paths-ignore:
- '**.po'

workflow_dispatch:

jobs:
build:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/check-queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ name: Check queries
# - the latest postgis version

on:
push:
branches-ignore:
- 'translations_*'
tags: []
pull_request:
paths-ignore:
- '**.po'
workflow_dispatch:

jobs:
build:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Build for Ubuntu with clang

on:
push:
branches-ignore:
- 'translations_*'
tags: []
pull_request:
paths-ignore:
- '**.po'
workflow_dispatch:


jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/doc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ name: Check Documentation
# - build Links
# - English is always tested

on: [push,pull_request]
on:
workflow_dispatch:

jobs:
build:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ name: Build documentation
# - postgis 3

on:
push:
branches:
- main
tags:
- '*'
workflow_dispatch:

jobs:
build:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/locale-and-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Update Locale and Website

on:
workflow_dispatch:
push:
branches:
- main
- develop

jobs:
release:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Build for macOS

on:
push:
branches-ignore:
- 'translations_*'
tags: []
pull_request:
paths-ignore:
- '**.po'
workflow_dispatch:

# TODO: Fix the macOS build for compiling and building VROOM with vrprouting.
jobs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Release

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:


jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
wget https://github.com/google/or-tools/releases/download/v9.3/or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz
ls or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz
mkdir ortools
tar xf or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz ./ortools
tar xf or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz -C ./ortools


- name: Install VROOM dependencies
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build for Windows

on:
push:
branches-ignore:
- '**'
workflow_dispatch:

jobs:
build:
Expand Down
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,20 @@ foreach (subdir ${PROJECT_SRC_DIRECTORIES})
add_subdirectory("${PROJECT_SOURCE_DIR}/src/${subdir}")
endforeach()

#---------------------
#----------------------
# Google OR tools
#---------------------
#----------------------

# set(CMAKE_PREFIX_PATH "/home/manas/Codes/GSOC-2022/MyFork/ortools/build")
add_subdirectory(ortools)
# set(ortools_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build")
# set(absl_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/absl-build")
# set(re2_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/re2-build/CMakeFiles/Export/lib/cmake/re2")
# set(Protobuf_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/protobuf-build/lib/cmake/protobuf")
# find_package(ortools CONFIG REQUIRED)
add_executable(myapp bin_packing.cc)
target_link_libraries(myapp ortools::ortools)

find_package(ortools CONFIG REQUIRED)
target_link_libraries(vrprouting ortools::ortools)

#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion include/drivers/or_tools/knapsack_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ extern "C" {
}
#endif

#endif // INCLUDE_DRIVERS_PGR_PICKDELIVER_PICKDELIVER_DRIVER_H_
#endif // INCLUDE_DRIVERS_OR_TOOLS_KNAPSACK_DRIVER_H_

7 changes: 4 additions & 3 deletions src/or_tools/knapsack.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ PG_FUNCTION_INFO_V1(_vrp_knapsack);
static
void
process(
char* pd_orders_sql,
char* vehicles_sql,
char* weights_sql,
char* values_sql,
char* matrix_sql,
int bin_capacity,
double factor,
int max_cycles,
int initial_solution_id,
Expand Down Expand Up @@ -324,4 +325,4 @@ _vrp_knapsack(PG_FUNCTION_ARGS) {
} else {
SRF_RETURN_DONE(funcctx);
}
}
}
2 changes: 1 addition & 1 deletion src/or_tools/knapsack_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@ do_pgr_pickDeliver(
*err_msg = pgr_msg(err.str().c_str());
*log_msg = pgr_msg(log.str().c_str());
}
}
}
Loading