xabbuh / brp-php

Collection of tools and algorithms for block relocation problems (BRPs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Block Relocation Problem Solver

Scrutinizer Code Quality Build Status SensioLabsInsight

Getting Started

Add xabbuh/block-relocation-problem to your composer.json file:

{
    "require": {
        "xabbuh/block-relocation-problem": "~1.0@dev"
    }
}

and run php composer.phar update.

Container Configuration

Create a file containing your BRP configuration (e.g. configuration.json):

{
    "stacks": [
        [6, 7, 9],
        [1, 3, 4],
        [2, 8, 5]
    ]
}

Solve the Problem

Solve the problem running the brp:configuration:solve command:

$ php vendor/bin/brp.php brp:configuration:solve --algorithm=la configuration.json

About

Collection of tools and algorithms for block relocation problems (BRPs)

License:MIT License


Languages

Language:PHP 100.0%