GithubHelp home page GithubHelp logo

lab-optaplanner's Introduction

Toy problem to get the hands on Optaplanner

Inputs:

  1. Satellite visibilities: a list of opportunities to contact a satellite from a ground antenna. Each vibility has the following attributes: time period, satellite id, antenna id
  2. Contact requests: a list of requests to contact a satellite. Each request has the following attributer: required duration, satellite id

Output:

  1. Contact plan: a list of (contact request, satellite visibility)

Constraints:

  1. Must not assign the same visibility to more than one contact request
  2. Must not assign a visibility with a duration shorter than required by the contact request
  3. Must not assign a visibility for sat X to a contact request for sat Y
  4. Must not assign overlapping visibilities for a sat
  5. Must not use the same antenna to stablish more than one contact at the same time

Usage:

mvn test
mvn exec:java

The execution takes the following input files:

  1. input-visibilities.csv the available satellite visibilities with the following fields: id, satellite, antenna, from, to. For example
1,sat1,ls1,2000-01-01T00:00:01.00Z,2000-01-01T00:00:06.00Z
2,sat1,ls2,2000-01-01T00:00:10.00Z,2000-01-01T00:00:16.00Z
3,sat1,ls3,2000-01-01T00:00:18.00Z,2000-01-01T00:00:26.00Z
4,sat1,ls2,2000-01-01T00:00:30.00Z,2000-01-01T00:00:38.00Z
  1. input-contact-requests.csv the satellite contacts to schedule with the following fields: id, duration, satellite. For example
73556,PT6S,sat1
b7e88,PT6S,sat1
fd6f4,PT6S,sat1
78516,PT3S,sat2

The execution generates two files:

  1. visibilities.pu visibilities temporal diagram in PlantUML format. visibilities.pu
  2. contact-plan.pu contact plan temporal diagram in PlantUML format. contact-plan.pu where unsolved contact request are highlighted in red. Fully solvable plans look like contact-plan.pu

lab-optaplanner's People

Contributors

chavacava avatar

Watchers

 avatar  avatar

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.