Ask HS: can TensorFlow be used for combinatorial optimization problems?

4 points by bischofs ↗ HN
Working on a scheduling problem - I have heard of neural networks being used for this problem domain but wasn't sure TF covered this domain.

2 comments

[ 6.0 ms ] story [ 30.9 ms ] thread
In general, TensorFlow and other automatic differentiation frameworks (Chainer, Torch, Theano, etc.) operate on gradient descent of smooth functions. If you can recast your combinatorial problem into a smooth function, then these frameworks may be applicable. However, most combinatorial optimization problems aren't readily transformed into smooth functions, so this is unlikely to be straightforward.
You can use the tensor formalism to express combinatorial problems, but these will not be smooth, so gradient descent algorithms will not work. However, you can turn such boolean tensor problems into huge SAT problems and solve them with SAT solvers. See for example here: https://github.com/mmaroti/uasat