Thursday, December 26, 2013

OpenShift Primer - a JBoss Business Resource Optimizer Preview

While working on a revision of the existing OpenShift Primer book I came up with a few new quickstart projects. One of the more exciting things coming soon the to the Red Hat JBoss products is the JBoss Business Resource Optimzer, based on the OptaPlanner project.

What is the OptaPlanner?

"OptaPlanner optimizes business resource usage. Every organization faces planning problems: provide products or services with a limited set of constrained resources (employees, assets, time and money). OptaPlanner optimizes such planning to do more business with less resources.

OptaPlanner is a lightweight, embeddable planning engine written in Java™. It helps normal Java™ programmers solve constraint satisfaction problems efficiently. Under the hood, it combines optimization heuristics and metaheuristics with very efficient score calculation."

To get you started I have put together a quickstart project based that allows you to preview the abilities of the JBoss Business Resource Optimizer in the form of two demos. It will optimize a data center for cloud usage and show you how to optimize a vehicle routing puzzle.

The example is available on OpenShift:

It is more fun to put together your very own example, so here you can find the instructions as outlined in the demo project

Create an account at
Create a JBoss EAP 6 application
rhc app create optimizer -t jbosseap-6
Add this upstream openshift-businesss-resource-optimizer repository
cd optimizer

git remote add upstream -m master git://

git pull -s recursive -X theirs upstream master
Then push the repo upstream
git push
That's it, you can now checkout your application at: