GithubHelp home page GithubHelp logo

pathgenerator's Introduction

Path generator for nsp4j-optimizer project

Requirements

  • Apache Maven (>= 3.8.6)
  • Oracle(r) Java Development Kit (>= 17.0.2)

Build the project

$ mvn clean compile package

Run the application

$ java -jar target/placement-1.0-SNAPSHOT-runnable.jar paths -t <topology_file.dgs> -k <number of shortest paths> -b <origin of paths> -e <destination of paths>

Where:

  • paths indicates that the program should generate paths
  • <topology_file.dgs> should be replaced by the complete paths of the .dgs file
  • <number of shortest paths> is the number of k shortest paths to generate (e.g., -k 3 will generate 3 shortest paths)
  • -b indicates the tier of nodes that should be taken as the origin of the paths
  • -e indicates the tier of nodes that should be taken as the destination of the paths

Example:

java -jar target/placement-1.0-SNAPSHOT-runnable.jar paths -t /home/zaca/devel/nsp4j-optimizer/src/main/resources/scenarios/dim36.dgs -k 3 -b 4 -e 0

Format of the .dgs file

The nodes should include the attribute tier in the .dgs file. For example:

DGS004
test 0 0
...
an 1 x:0.00359 y:0.00036 num_servers_node:10 server_capacity:3200000 tier:0
...

pathgenerator's People

Contributors

izacarias avatar

Watchers

 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.