min function (var1,var,2,var3,var4)

I make a function with many variables. I want to run it to know the best deal between my variables.

I explain with exemple:
Var1: from 100 to 1000
var2: from 100 to 1000
var3:from 100 to 1000
var4: list(A, B,C, D)

Minfunction (var1,var2,var3,var4) =
for (i in 100:1000) {
for(j in 100:1000){
for(k in 100:1000){
for(l in length(var4){ function(var1,var2,var3,var4) }}}

I want to return for exemple:
the minfunction is 4442 with:

I try with nlminb but it don't work.
thk for your help

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.