I previously asked this question and wanted to continue the observation, since I tried other things, and they didn’t quite work.
I am essentially trying to optimize a problem like NLP in R, which has binary and integer constraints. The code for it is below:
# Input Data DTM <- sample(1:30,10,replace=T) DIM <- rep(30,10) Price <- 100 - seq(0.4,1,length.out=10)
I get the following warning / error:
I understand that Hessian is a rare matrix, and therefore there may be problems with inversion? Also, there might be some better way to do this optimization, since it doesn't seem like a complicated problem, and I feel like I'm missing something quite straightforward here!
A description of the problem is described in detail in this question .
Any help would be greatly appreciated.
source share