I'm pretty new on Julia and have a question that may appear simple. Say I have a function, which I will name test(x::Vector, arg1, arg2)
where x
is a vector of variables and the function has two arguments arg1
& arg2
.
I would like to optimize (minimize) the function test
with respect to the vector x
. I can't figure out how to use the optimize function from the Optim
package that accepts two arguments values. In R, one may do as following:
optim(initial guest, test, arg1=value1,arg2=value2)
Is there a similar way to declare argument value in Julia?