Code Monkey home page Code Monkey logo

scheduler's Introduction

scheduler

  1. Clone the repository to your structure
  2. Download Mixed Integer Programming solver: http://scip.zib.de/download.php?fname=scipoptsuite-3.0.2.tgz
  3. Unpack it to the cloned repository
  4. Follow the installation instructions: http://scip.zib.de/doc-3.0.2/html/MAKE.shtml
  5. Rewrite the file scipoptsuite-3.0.2/scip-3.0.2/make/make.project by the file from cloned repository (setting compiler to follow c++11 standard)
  6. Run "make" in the cloned repository to compiled the code
  7. Go to the bin folder and run main to observed behaviour

How to use it

See the main.cpp for example, you should create a vector of pointers to tasks. Then create a new scheduler object passing the address of the vector with tasks Scheduler sch(&schedT);

Then, method solve return true, if the solution is found and set execution_time in each tasks. Otherwise return false.

bool worked = sch.solve();

TODO:

  1. Solve the bug that scheduler will handle preconditions of task
  2. Simplify the equations (if the pre is set to one, we dont need to have both equations)
  3. Run more tests

g++ -std=c++0x main.cpp task.cpp scheduler.cpp distWrapper.cpp -o main

scheduler's People

Contributors

mudrole1 avatar

Watchers

 avatar James Cloos avatar Nick Hawes avatar Bruno Lacerda 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.