Fix to the linear constraint optimizer in Scala.