I have done it in Excel but need to run a proper simulation in R.
I need to minimize function F(x)
(x
is a vector) while having constraints that sum(x)=1
, all values in x
are [0,1]
and another function G(x) > G_0
.
I have tried it with optim
and constrOptim
. None of them give you this option.