Skip to content

Commit 0cb3be0

Browse files
authored
Merge pull request #227 from Manas23601/manas-week-4
GSoC 22 Manas Sivakumar : Week 4
2 parents 554d434 + 937dae5 commit 0cb3be0

15 files changed

+164
-160
lines changed

.github/workflows/boost_version.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
name: Boost supported versions
22

33
on:
4-
push:
5-
branches-ignore:
6-
- 'translations_*'
7-
tags: []
8-
pull_request:
9-
paths-ignore:
10-
- '**.po'
11-
4+
workflow_dispatch:
125

136
jobs:
147
build:

.github/workflows/check-queries.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ name: Check queries
44
# - the latest postgis version
55

66
on:
7-
push:
8-
branches-ignore:
9-
- 'translations_*'
10-
tags: []
11-
pull_request:
12-
paths-ignore:
13-
- '**.po'
7+
workflow_dispatch:
148

159
jobs:
1610
build:

.github/workflows/clang.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
name: Build for Ubuntu with clang
22

33
on:
4-
push:
5-
branches-ignore:
6-
- 'translations_*'
7-
tags: []
8-
pull_request:
9-
paths-ignore:
10-
- '**.po'
4+
workflow_dispatch:
115

126

137
jobs:

.github/workflows/doc-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ name: Check Documentation
88
# - build Links
99
# - English is always tested
1010

11-
on: [push,pull_request]
11+
on:
12+
workflow_dispatch:
1213

1314
jobs:
1415
build:

.github/workflows/documentation.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ name: Build documentation
66
# - postgis 3
77

88
on:
9-
push:
10-
branches:
11-
- main
12-
tags:
13-
- '*'
9+
workflow_dispatch:
1410

1511
jobs:
1612
build:

.github/workflows/locale-and-website.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Update Locale and Website
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
8-
- develop
95

106
jobs:
117
release:

.github/workflows/macos.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
name: Build for macOS
22

33
on:
4-
push:
5-
branches-ignore:
6-
- 'translations_*'
7-
tags: []
8-
pull_request:
9-
paths-ignore:
10-
- '**.po'
4+
workflow_dispatch:
115

126
# TODO: Fix the macOS build for compiling and building VROOM with vrprouting.
137
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
4+
workflow_dispatch:
75

86

97
jobs:

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
wget https://github.com/google/or-tools/releases/download/v9.3/or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz
6262
ls or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz
6363
mkdir ortools
64-
tar xf or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz ./ortools
64+
tar xf or-tools_amd64_ubuntu-20.04_v9.3.10502.tar.gz -C ./ortools
6565
6666
6767
- name: Install VROOM dependencies

.github/workflows/windows.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Build for Windows
22

33
on:
4-
push:
5-
branches-ignore:
6-
- '**'
4+
workflow_dispatch:
75

86
jobs:
97
build:

CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,20 @@ foreach (subdir ${PROJECT_SRC_DIRECTORIES})
327327
add_subdirectory("${PROJECT_SOURCE_DIR}/src/${subdir}")
328328
endforeach()
329329

330-
#---------------------
330+
#----------------------
331331
# Google OR tools
332-
#---------------------
332+
#----------------------
333+
334+
# set(CMAKE_PREFIX_PATH "/home/manas/Codes/GSOC-2022/MyFork/ortools/build")
335+
add_subdirectory(ortools)
336+
# set(ortools_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build")
337+
# set(absl_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/absl-build")
338+
# set(re2_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/re2-build/CMakeFiles/Export/lib/cmake/re2")
339+
# set(Protobuf_DIR "/home/manas/Codes/GSOC-2022/MyFork/ortools/build/_deps/protobuf-build/lib/cmake/protobuf")
340+
# find_package(ortools CONFIG REQUIRED)
341+
add_executable(myapp bin_packing.cc)
342+
target_link_libraries(myapp ortools::ortools)
333343

334-
find_package(ortools CONFIG REQUIRED)
335-
target_link_libraries(vrprouting ortools::ortools)
336344

337345
#-----------------------------------------------------------------------------
338346
#-----------------------------------------------------------------------------

include/drivers/or_tools/knapsack_driver.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ extern "C" {
7676
}
7777
#endif
7878

79-
#endif // INCLUDE_DRIVERS_PGR_PICKDELIVER_PICKDELIVER_DRIVER_H_
79+
#endif // INCLUDE_DRIVERS_OR_TOOLS_KNAPSACK_DRIVER_H_
80+

src/or_tools/knapsack.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ PG_FUNCTION_INFO_V1(_vrp_knapsack);
3535
static
3636
void
3737
process(
38-
char* pd_orders_sql,
39-
char* vehicles_sql,
38+
char* weights_sql,
39+
char* values_sql,
4040
char* matrix_sql,
41+
int bin_capacity,
4142
double factor,
4243
int max_cycles,
4344
int initial_solution_id,
@@ -324,4 +325,4 @@ _vrp_knapsack(PG_FUNCTION_ARGS) {
324325
} else {
325326
SRF_RETURN_DONE(funcctx);
326327
}
327-
}
328+
}

src/or_tools/knapsack_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ do_pgr_pickDeliver(
265265
*err_msg = pgr_msg(err.str().c_str());
266266
*log_msg = pgr_msg(log.str().c_str());
267267
}
268-
}
268+
}

0 commit comments

Comments
 (0)