xabbuh/block-relocation-problem

Algorithms for solving block relocation problems

dev-master / 1.0.x-dev 2014-05-12 18:46 UTC

This package is auto-updated.

Last update: 2024-10-28 22:16:17 UTC


README

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