It depends on the age of the optima, they have gone steeply downhill in the last decade. Throw it on the charger for 24-48 hours.
Little story on my yellowtop experiences thou.
I bought a yellowtop in the fall of 98 for my 99 ford ranger. I used it on that rig, winching and stereo use while camping where common) until spring of 01 when I moved it to a 95 4runner. It again saw a decent stereo and winch use, often with the truck off. In the spring of 04 I went to Alaska for 6 weeks and left the dome light on. Dead doesn't even describe it, 0.010v on a multimeter. For S&G I put the multimeter on my tongue, 0.030v.. I figured the battery was a gonner but tried to charge it anyhow. No automotive chargers even recognized it, so a charge wasn't applied. In the back of my dads shop I found an old 50a marine charger and hooked it up, it too more that 24 hours but took a charge.
I used that battery in the 4runner until 2005 whe I moved it to a 92 Toyota pickup, where I also had plenty of engine off stereo use. When I had the rig parked for 10 months in 06-07 it drained to 11.xx but again came back. I sold that truck with that yellowtop in 07 and the battery was used for at least 2 more years, maybe longer.
In short optima used to make a great battery, but from what I read that is no longer the case. Now my truck has sears platinums (rebadged Odyssey) and the camper has lifeline.