add costs & constraints