is it possible to do the same with AO - no optimisation while logged in?
yes, and that is (or should be) exactly what the hooked function does; return true to the autoptimize_filter_noptimize filter if is_user_logged_in is true (or if there is "vc_" in the URL). I did a quick test and this works on my install; when looking at the site while logged in there's no optimization, when not logged in there is (as can be confirmed by looking at the HTML-source).
where did you put the code? are you sure it's active?
frank