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!

fmincon setup

Status
Not open for further replies.

cnestg8r

Mechanical
Oct 11, 2006
1
I need help setting up fmincon. Assume:

C=[12 13; 13 12; 14 14]; %cost matrix

where C.*v = T
min f(v)= sum(sum(T));

S=[6 6]; %supply vector

D=[3; 2; 4]; %demand vector

constraints:

S => sum(v,1);
D <= sum(v,2);

how do I apply to fmincon??
MANY THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor