GVD and SPM optimization in optical fiber using a hybrid method