search for: noofparameters

Displaying 1 result from an estimated 1 matches for "noofparameters".

Did you mean: bootparameters
2011 Apr 08
0
Fwd: The results of your email commands
...y we use constraints in programs like maxBFGS, etc. We need to put two matrices into a list, containing the mutipliers on the LHS of the constraint equations and the constants on the RHS. I want to constrain the last parameter of my routine to a negative value. Hence, I specify: lhs=matrix(0,nrow=noOfParameters,ncol=noOfParameters) lhs[noOfParameters,noOfParameters]=-1 rhs=matrix(0,nrow=(noOfParameters)) Then I use: constraints = list(ineqA=lhs,ineqB=rhs) in the maxBFGS function. However, the result is that no matter what parameters I enter (positive, negative or 0), I get an error saying that the init...