Hello,

I'm trying to run constrOptim. It returns to me an error about the fact that constraints arguments (ui and ci) are non compatibles:

> optout= constrOptim(startparams, f=ImpulseSS, grad=grImpulse, ui=UI, ci=CI, data=gexp[k,], t=t)

Error in ui %*% theta : non-conformable arguments

I would like to point out that I can calculate that product in the command line:

> UI %*% startparams
               [,1]
 [1,]  2.297217e+05
 [2,]  1.699765e+05
 [3,]  2.037806e+05
 [4,]  6.535699e+00
 [5,]  1.014253e+01
 [6,]  4.215988e+00
 [7,] -2.297217e+05
 [8,] -1.699765e+05
 [9,] -2.037806e+05
[10,] -6.535699e+00
[11,] -1.014253e+01
[12,] -4.215988e+00

In fact, dimensions of "UI" and "startparams" are compatible in terms of the scalar product:

> dim(UI)
[1] 12  6
> dim(as.matrix(startparams))
[1] 6 1

Thanks in advance,

Stefano
	[[alternative HTML version deleted]]

