Correct print_A_at_end to unconstrained problems