Updated YALMIP code for LOG and EXP