"bnds" not assigned

I received the following message after running the Dynare. What is the reason?
Output argument “bnds” (and maybe others) not assigned during call to “mu”.
Error in Sentiment2_steadystate (line 41)
mc=(phi*(PI^(1-(chimu))-1)PI^(1-(chimu))(1-betta)+theta-1)/theta;

You only give a single equation from your model… But I have the impression that mu is also the name of an existing Matlab function. To check that you can look at the output of:

>> which mu

if the command returns something, it means that you will have to rename your parameter (or variable I do not know).

Best,
Stéphane.

That is a problem with Matlab’s way of functions working. You can circumvent it by either renaming mu or adding

mu=0

before the loop that extracts the parameter values in the steady state file.