Rita - the error message
"Unrecognized function or variable 'ifdoflimit'.
Error in truss2D_nlcon (line 154)
if ifdoflimit(idof)==11
Error in truss2D_optimization (line 34)
[C,Ceq] = truss2D_nlcon(coorddofvar0);
is valid since the truss2D_optimization function is trying to use the variable ifdoflimit which is only created (but not returned from) truss2D_readdata. If ifdoflimit is truly needed in the optimization function, then I recommend that you change the truss2D_readdata signature to return this parameter.
Best Answer