# Increase the speed of the NMaximize function?

**URL:** <https://community.wolfram.com/t/increase-the-speed-of-the-nmaximize-function/18228>\
**Category:** Questions\
**Tags:** optimization\
**Created:** [June 5, 2021, 6:28am UTC](https://community.wolfram.com/t/increase-the-speed-of-the-nmaximize-function/18228 "2021-06-05T06:28:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousefolfatmiri](https://avatars.discourse-cdn.com/v4/letter/y/e495f1/32.png) [@yousefolfatmiri](https://community.wolfram.com/u/yousefolfatmiri)\
**Post date:** [June 5, 2021, 6:28am UTC](https://community.wolfram.com/t/increase-the-speed-of-the-nmaximize-function/18228/1 "2021-06-05T06:28:10Z")

</div>

I want to forecast a time series using the support vector Regression (SVR) model. After writing the code related to the SVR equations, I used the “NMaximize” function to obtain the coefficients of this model, but the input matrix has dimensions of {187000,4} , which running of this function takes so long that I have not been able to get the output, while for dimension of {176,4} I get the output answer in about 2 minutes  
The following code is for dimension of {176,4} :

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/ccb0dbfe-4a73-4feb-b7cd-1f484abb2429)

To reduce the computation time, I reduced the “MaxIterations” to 10, which also reduced the accuracy.  
Can anyone suggest me a solution to this problem?
