 Recent efforts have focused on the development of new software systems that are able to directly titrate anesthesia based on activity of the brain EEG as a feedback mechanism . Brain activity is used to measure the effect of anesthetic medications anesthetic depth, which can vary from person to person despite being given the same amount of medication. There is a potential for new systems to considerably improve anesthetic control by using methods that are able to adapt to the constant input of brain activity. The purpose of this study is to compare a closed -loop intravenous anesthetic TIVA using BIS Bispectral Index as a feedback loop and a controller based on reinforcement learning to titrate dose and TIVA that is manually controlled or a standard volatile anesthetic agent titrated by the anesthesiologist. 