Code Monkey home page Code Monkey logo

goestimate's Introduction

goestimate

Command line tool that:

  1. Reads a JSON execution plan of gonum distributions distributions.
    • Operations can be arbitrarily nested and both serial and parallel execution is supported.
  2. Creates a gonum graph where nodes represent generator events.
  3. Runs a Monte Carlo simluation of all generators.
  4. Computes the execution's critical path based on each generator's mean result.
  5. Generates a D2 representation and SVG image that includes denoting the critical path.

Example

Input

{
    "name": "My Project",
    "runCount": 10000,
    "activities": {
        "tasks": [
            {
                "name": "DesignDoc",
                "type": "PERT(4,5,8)"
            }
        ]
    }
}

Output

simple.svg

The final arrow points to a histogram of expected completion times:

simple.png

Example - workdays

To produce a workday calendar aware completion date, add workdays:true key to the JSON definition.

{
    "name": "My Project",
    "runCount": 10000,
    "workdays" : true,
    "activities": {
        "tasks": [
            {
                "name": "DesignDoc",
                "type": "PERT(4,5,8)"
            }
        ]
    }
}

simple-workdays.svg

Control Flow

There are no reserved keynames in an activities object. goestimate makes the following assumptions:

  • Key values that scope arrays are assumed to define serial tasks
  • Key values that define objects are assumed to be parallel operations unless they include name and activities keys. In that case they are treated as subgraphs. Subgraphs are output as nested D2 Containers and can be arbitrarily nested.

For instance, the workflow.json definition produces a more complex representation:

workflow

Supported Distributions

PERT and Pareto are the most useful for estimation.

Future

  • Support external JSON references (ex: "$ref": "file://" or "$ref": "https://")
  • Better docs
  • Support critical path calculation based on pNN (current: p50 only)
  • Support YAML workflow definition
  • Espose more D2 formatting options (ex: sketch mode)
  • Support D2 Composition
  • Update formatting of summary histogram, CDF
  • Color code vertices based on amount of slack similar to COLORED NETWORK DIAGRAMS (PART 1)

goestimate's People

Contributors

mweagle avatar

Stargazers

Royce Williams 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.