Giter Club home page Giter Club logo

cs634-summer-2020-capstone's Introduction

cs634-summer-2020-capstone

The CS634-summer-2020 capstone project.

cs634-summer-2020-capstone's People

Contributors

ashishsaxena367 avatar bamoah avatar kirstenschulz avatar markbentivegna avatar pantelis avatar ssempax1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cs634-summer-2020-capstone's Issues

Group Mobility Controller

Design of Structures:
4D Array Structure of controller
d1 = some mapped conversion from min-max NYC latitude rounded to the 10th, 40.6 to 41.7, multiplied by 10 and round to n rows, for example 406 to 417, will be 12 rows.
d2 = some mapped conversion from min-max NYC longitude rounded to the 10th, -74.3 to -72.9, multiplied by 10 and round to m columns.
d3 = 24 hours
d4 = IDs (inflexible in arrays given that each spot has different thresholds)

Other possible structure
d4 may not be needed if the only thing that matters is that the agent do not ask consecutive requests in the whole system. In that case an independent structure can be maintained for IDs like a Queue and in d3 we just put the number of accumulated individuals.

2D Array Structure of thresholds
threshold 0=”do nothing”, threshold n=hot spots-threshold
Once threshold has been calculated, they should be saved. Threshold could be simulated or produce using the NYC taxi data, adding the drop off per coordinates, and taking only a percentage of it

Other important values to be checked at the beginning are complete lockdown (zero booking), health state of agents , etc.
Epidemologic model is based on a daily movement; so we use 24 hours booking.

Interfaces from/to Agent Based Model:

Incoming Interface:
BookingRequest( type=1, agent_ID=agent_ID, children=0, health_status = 1, desired_slot = SystemTime + 1 hour, duration = 1, orig_lat = orig_lat, dest_lat= dest_lat, orig_long=orig_long, dest_long = dest_long)

type =1 (booking):

All fields are required.
We will convert the distance from latitude and longitude to miles:
https://gis.stackexchange.com/questions/142326/calculating-longitude-length-in-miles
If distance is less than a mile, immediate approval.

If health_status = 0 (sick), immediate rejection. Parameter needed only if agent is allowed by Agent Based Model to emit booking request for an agent who is sick.

desired_slot is between 0 and 23 (or 1 and 24)

type=2 (cancelation):

ID is required
Slot is required
Duration is required in case of only partial cancelations.
Coordinates are required.

Outgoing interface:
BookingConfirmation return(code=0, slot=slot)
Code = 0 and slot = desired date-time slot or next available slot.
Code = -1 and slot = 0, rejected booking

Questions

  1. Will a person be allowed to take more than one slot at once, up to 2,3, ..24?

  2. Can we allow a person to book a consecutive request in a different geographical situation than the first request? Or should we be more strict and not allow them?

  3. Do we need to create a server? Otherwise we can have batch simulation and we have to save the structure at the end of a run.

  4. Is it rebooking really necessary? Cancelation could be enough.

  5. Should children be booked together under parent ID and a general_family_health_status or should we ignore their age and treat them as independent agent?

  6. Should the agent based model allow at all an agent to do a request for booking if he/she is sick?

Interfaces from/to Mobility Controller

Interfaces from/to Agent Based Model:

Incoming Interface:
BookingRequest( type=1, agent_ID=agent_ID, children=0, health_status = 1, desired_slot = SystemTime + 1 hour, duration = 1, orig_lat = orig_lat, dest_lat= dest_lat, orig_long=orig_long, dest_long = dest_long)

type =1 (booking):

All fields are required.
We will convert the distance from latitude and longitude to miles:
https://gis.stackexchange.com/questions/142326/calculating-longitude-length-in-miles
If distance is less than a mile, immediate approval.

If health_status = 0 (sick), immediate rejection. Parameter needed only if agent is allowed by Agent Based Model to emit booking request for an agent who is sick.

desired_slot is between 0 and 23 (or 1 and 24)

type=2 (cancelation):

ID is required
Slot is required
Duration is required in case of only partial cancelations.
Coordinates are required.

Outgoing interface:
BookingConfirmation return(code=0, slot=slot)
Code = 0 and slot = desired date-time slot or next available slot.
Code = -1 and slot = 0, rejected booking

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.