Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding derivative constraints in fmincon

Status
Not open for further replies.

rebeccayxf

Chemical
Aug 6, 2005
1
I have a constrains like |dx/dt|<=0.1 in the linear optimization, so in the file confum.m, I use the code:

c(1) = abs(gradient(x)) - 0.1;

however, it did work.

So, I want to know what is wrong with this statement.

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor