Giter Site home page Giter Site logo

Comments (2)

jcoupey avatar jcoupey commented on July 18, 2024

Does this imply amount/capacity constraints are simply not supported by the front end?

No, if you upload a json file with amounts they will be transferred to the backend. The restriction is that we have no way to set an amount for a new job upon clicking on the map. So in order to avoid inconsistent behavior (some jobs with amounts some without), we simply erase all amounts for existing jobs/vehicles in that case and warn users about it.

This should only happen if you load a problem with amounts and then try to add some more jobs manually.

from vroom-frontend.

luzzi8 avatar luzzi8 commented on July 18, 2024

Thank you for your reply and explanation.

I tested on http://map.vroom-project.org/ with the request below and I can confirm your statement.

When I test with the frontend version pulled in via the vroom-frontend-docker image (see my inital post) the amounts/capacities are removed right upon upload without adding an additional job manually.

{
  "vehicles": [
    {
      "id": 1,
      "start": [
        2.35044,
        48.71764
      ],
      "end": [
        2.35044,
        48.71764
      ],
      "capacity": [
        4
      ],
      "skills": [
        1,
        14
      ],
      "time_window": [
        1600416000,
        1600430400
      ]
    },
    {
      "id": 2,
      "start": [
        2.35044,
        48.71764
      ],
      "end": [
        2.35044,
        48.71764
      ],
      "capacity": [
        4
      ],
      "skills": [
        2,
        14
      ],
      "time_window": [
        1600416000,
        1600430400
      ],
      "breaks": [
        {
          "id": 2,
          "service": 300,
          "time_windows": [
            [
              1600423200,
              1600425000
            ]
          ]
        }
      ]
    }
  ],
  "jobs": [
    {
      "id": 1,
      "service": 300,
      "delivery": [
        1
      ],
      "location": [
        1.98935,
        48.701
      ],
      "skills": [
        1
      ],
      "time_windows": [
        [
          1600419600,
          1600423200
        ]
      ]
    },
    {
      "id": 2,
      "service": 300,
      "pickup": [
        1
      ],
      "location": [
        2.03655,
        48.61128
      ],
      "skills": [
        1
      ]
    },
    {
      "id": 5,
      "service": 300,
      "delivery": [
        1
      ],
      "location": [
        2.28325,
        48.5958
      ],
      "skills": [
        14
      ]
    },
    {
      "id": 6,
      "service": 300,
      "delivery": [
        1
      ],
      "location": [
        2.89357,
        48.90736
      ],
      "skills": [
        14
      ]
    }
  ],
  "shipments": []
}

from vroom-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.