Skip to content

Instantly share code, notes, and snippets.

View braktar's full-sized avatar

Gwénaël Rault braktar

View GitHub Profile
{
"vrp": {
"configuration": {
"resolution": {
"duration": 60
}
},
"matrices": [
{
"distance": [
{
"vrp": {
"configuration": {
"resolution": {
"duration": 300
}
},
"matrices": [
{
"id": "matrix_0",
{
"solutions": [
{
"cost": 45040,
"solvers": [
"ortools"
],
"iterations": 14,
"routes": [
{
{
"vrp": {
"configuration": {
"resolution": {
"duration": 60000
}
},
"matrices": [
{
"id": "matrix_0",
{
"vrp":
{
"matrices": [
{
"id": "matrix_0",
"time": [
[
0,
8693.8,
// Copyright 2010-2017 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@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
}
},
{
"vrp": {
"units": [{
"id": "kg"
}],
"points": [{
"id": "620490",
"location": {
"lat": 50.4,
"lon": 2.9
{
"vrp": {
"points": [{
"id": "620490",
"location": {
"lat": 50.4,
"lon": 2.9
}
}, {
"id": "590762",
@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",