This study is evaluating an oral investigational medication (solriamfetol) in adults with BED. Solriamfetol is approved by the FDA for people who have excessive daytime sleepiness associated with narcolepsy and obstructive sleep apnea (OSA), which are sleep-related disorders. Solriamfetol is an investigational treatment for BED, meaning it has not yet been approved by any health authority for the treatment of BED.