Following parts of the post are organized as :
0 - problem definition
1 - solution using constrained method
2 - solution using log barrier method