01-05-2009 07:48 AM
Hi,
I am trying to do optimization using the constrained Nonlinear Optimization.vi. I could not understand how to use a second function for my nonlinear constrain. I was successfully able to add scalars constrains. I know fmincon enables such thing, but in fmincon I cannot use additional variable in the function. I would appreciate an example.
Thanks
David
01-07-2009 11:11 AM
Hi David,
I'm not sure I understand what you are asking about. Are you looking to replace the equality and inequality constraints with a function? This may be a limitation of the VI. Also, I don't understand what you mean when you say you can't use additional variables in the function with fmincon. Does that mean your functions are limited to a certain degree with fmincon? For a list of built-in examples that use the Constrained Nonlinear Optimization.vi, select Help » Find Examples... and then in the Search tab, type nonlinear optimization for a listing of examples that use this VI. Be aware that some of the examples require the Control Design and Simulation Toolkit, but we do have a few that do not. Could you also attach a copy of your VI?