Binary Equilibrium Optimizer: theory and application in building optimal control problems