delete plot and raw_input in simplex method