Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Oct 11, 2006
Messages
1
Location
US
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

Back
Top