Posts by user164705 • 23 points
2 posts
-
0
votes1
answer37
viewsQ: nloptr optimization - "objective in x0 Returns NA" error
I’m having trouble using the function nloptr of R. I need the optimal value to be used in the function. The optimization will be iterative, using another value that is also being optimized at each…
rasked user164705 23 -
2
votes2
answers649
viewsQ: Sum of vector in R
I have a vector of integer values in R, for example: y = c(rep(1:4, c(36,9,2,1)), 6, 6) and I need to make a sum within a function, like this: that is, I need to do…
rasked user164705 23