FPTAS for mixed-integer polynomial optimization with a fixed number of variables