Skip to content

Instantly share code, notes, and snippets.

View braktar's full-sized avatar

Gwénaël Rault braktar

View GitHub Profile
@braktar
braktar / blackbox-input20201218-684630-1oepxnv
Last active February 10, 2021 14:22
Master ROAD binary file example - 2 vehicles + 6 services
0a0b 1209 6575 636c 6964 6561 6e12 370a
104d 6572 6765 645f 7665 6869 636c 652d
3112 050d 0000 c040 1a0a 0dbb 2735 4215
3873 9e40 220a 0dbb 2735 4215 3873 9e40
2880 8080 800c 1237 0a10 4d65 7267 6564
5f76 6568 6963 6c65 2d32 1205 0d00 00c0
401a 0a0d bb27 3542 1538 739e 4022 0a0d
bb27 3542 1538 739e 4028 8080 8080 0c1a
220a 0973 6572 7669 6365 5f31 1500 0000
4020 0020 012a 0c0d 4d6b 3642 1572 4998
@braktar
braktar / epona_example.json
Last active September 28, 2020 10:03
Exemples for Epona API
{
"request": {
"name": "Saint-Etienne-100-ikea-bakery_butcher_cheese_greengrocer_seafood_supermarket-3",
"units": [
{
"id": "kg"
}
],
"depots": [
{
@braktar
braktar / Big_instance.json
Last active September 2, 2020 15:41
First position breaks
{"vehicles":[{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":0,"service":25200,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":1,"service":25200,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":2,"service":25200,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":3,"service":25200,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":4,"service":25200,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,75600],"breaks":[{"id":5,"service":21600,"time_windows":[[21600,75600]]}]},{"id":0,"start_index":171,"end_index":171,"capacity":[8,5],"time_window":[21600,7
Measure Mode: wall_time
Thread ID: 47420359124420
Fiber ID: 47420368453720
Total: 5.561501
Sort by: self_time
%self total self wait child calls name location
9.12 0.950 0.507 0.000 0.443 128641 *Rack::QueryParser#normalize_params /home/gwenael/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rack-2.2.3/lib/rack/query_parser.rb:83
5.55 0.498 0.309 0.000 0.189 838037 Hashie::Mash#convert_key /home/gwenael/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/hashie-4.1.0/lib/hashie/mash.rb:373
5.27 5.561 0.293 0.000 5.268 196008 *Array#each
Measure Mode: wall_time
Thread ID: 47431050585540
Fiber ID: 47431059162720
Total: 92.728352
Sort by: self_time
%self total self wait child calls name location
8.10 11.522 7.510 0.000 4.011 18793275 Hashie::Mash#convert_key /home/gwenael/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/hashie-4.1.0/lib/hashie/mash.rb:373
7.56 54.179 7.009 0.000 47.170 6380079 *Hashie::Mash#convert_value /home/gwenael/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/hashie-4.1.0/lib/hashie/mash.rb:377
6.75 54.149 6.255 0.000 47.894 1545667 *Hash#each_pair
@braktar
braktar / Epona_example.json
Created April 15, 2020 14:33
Simple exemple for the generation of VRP instances within Epona-API
{
"request": {
"name": "nice_try",
"units": [{
"id": "kg"
}, {
"id": "volume"
}],
"depots": [{
"id": "university_depot",
@braktar
braktar / spec_file.json
Last active March 30, 2020 08:31
Actual Optimizer API swagger Description
{
"info": {
"title": "Optimizers API",
"description": "\nUnified API for multiple optimizer engines dedicated to Vehicle Routing Problems\n\nIts purpose is to provide a complete chain for the resolution. From a provided VRP, it requires a distance matrix, solve the problem and prepare a self sufficient result.\n\nPlease check the Github Wiki for more details: [https://github.com/Mapotempo/optimizer-api/wiki](https://github.com/Mapotempo/optimizer-api/wiki)\n",
"contact": {
"email": "tech@mapotempo.com",
"url": "https://github.com/Mapotempo/optimizer-api"
},
"license": {
"name": "GNU Affero General Public License 3",
{
"vrp": {
"points": [{
"id": "620490",
"location": {
"lat": 50.4,
"lon": 2.9
}
}, {
"id": "590762",
{
"vrp": {
"units": [{
"id": "kg"
}],
"points": [{
"id": "620490",
"location": {
"lat": 50.4,
"lon": 2.9
@braktar
braktar / vrp_noconstraint.json
Last active March 31, 2022 14:30
Simple VRP example
{
"vrp": {
"points": [
{
"id": "p0",
"location": {
"lat": 45.769233,
"lon": 4.907512
}
},