Encoding NN as MILP

  • Affine layer: direct.
  • ReLU layer:
  • Pre-condition: Normally box constraints like
  • Post-condition: