How do I apply Lagrange multipliers with binary variables?

1 reply · 2K views · last reply
Angelos K
Messages
43
Reaction score
0
Dear all,

I have an optimization problem with boundary conditions, the type that is usually solved with Lagrange multipliers. But the (many) variables my function depends on can take only the values 0 and 1. Does anyone know how to apply Lagrange multipliers in this case?

I am a physicist, so my background is not the widest.

Thank you in advance!
 
Well, you can't use Lagrange multipliers. Presumably there are too many variables to use exhaustive search, i.e. trying all 2n possibilities. In that case one possible solution is to use a Monte Carlo method such as http://en.wikipedia.org/wiki/Simulated_annealing" .
 
Last edited by a moderator: