LocalSolver logo
is now
Hexaly logo

We're excited to share that we are moving forward. We're leaving behind the LocalSolver brand and transitioning to our new identity: Hexaly. This represents a leap forward in our mission to enable every organization to make better decisions faster when faced with operational and strategic challenges.

This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the latest stable release.

Step by stepΒΆ

Having introduced the LocalSolver modeling language and the solver’s Python, C++, Java and .NET programming interfaces, we can now consider how to solve a practical optimization problem with LocalSolver. We will first give the main principles for designing good models and thus making the most of LocalSolver. You will see that it involves choosing the appropriate decision variables, subject to the right set of constraints, with a well-defined objective function. We will illustrate these principles on several examples from our example tour.

Then we apply these principles to tackle the car sequencing problem, a well-known combinatorial optimization problem related to the organization of the production line of a car manufacturer. We proceed step by step, from the reading of input data, to the writing of the best solution found.

Finally we consider the migration from an Integer Program to a LocalSolver model. We show that it involves identifying the set of decision variables and rewriting some expressions, taking advantage of the availability of non linear operators.