Images are better than words. Look at this video and a fragment of all the possibilities these complex algorithms can offer.
Red Hat JBOSS BPM Suite
Optimizer is a platform based on a Java project that started many years ago : Optaplanner. Since its start, it has been very successful and was eventually taken over by Red Hat. That project is now known as Red Hat JBOSS BPM Suite. It includes a lot of features for optimizing problems.