A method for the treatment of obesity or other disorders by electrical activation or inhibition of nerves is disclosed. This activation or inhibition can be accomplished by stimulating a nerve using an electrode. Dynamic stimulation through ramped cycling of electrical stimulation, stimulation frequency alteration, and/or duty cycle variance can produce therapeutic benefits.