apply branch & bound algorithm, get error when run ipopt at 2nd times