Optimization Using Julia

We exploreOptim package. We will first load Optim and Gadfly package. Optim is to use optimize and Gadfly is to plot a graph. Univariate Here, I create a quartric function, a fourth-degree polynomial to test optimize function. From the graph that plots the quartric function, the minimum of the function should lie within the range of 0 and 5. using Optim, Gadfly # univariate f1(x) = (x-1)*(x-2)*(x-3)*(x-4) plot(1:10, x-> f(x)) Let’s test optimize....

April 3, 2023 · 2 min · 291 words · Me