need help creating a code

4 次查看(过去 30 天)
Nirmal
Nirmal 2013-3-31
I need to create a code for the following problem in the link. pls help me.. i have to do it by four days..
Take values as i=1 to 3; s=4; tij is (3x4 matrix)= 2 4 6 8; 1 3 5 7; 1 2 3 4; Uij=W=30;
  10 个评论
Image Analyst
Image Analyst 2013-4-1
Oh, okay. I was thinking it was something (some other equation, or expression) that needed to be maximized. So you're saying it's like this: Z = (the maximum R(i) value over all possible index values for i) - basically Z is the desired answer, and once you know that you should know what values of i, j, m, t, U, and W gave rise to that Z.
Nirmal
Nirmal 2013-4-1
yes. absolutely..

请先登录,再进行评论。

采纳的回答

Matt J
Matt J 2013-4-1
编辑:Matt J 2013-4-1
You would need GA from the Global Optimization Toolbox. The IntCon argument would be used to specify integer-constraints.
  3 个评论
Matt J
Matt J 2013-4-1
Why would LINPROG have been any better than GA?
Nirmal
Nirmal 2013-4-1
not that sort of.. but i have to implement it in the form of a code. thus not possible to use the toolbox.

请先登录,再进行评论。

更多回答(1 个)

Nirmal
Nirmal 2013-4-1
still. i'm not clear about how to start coding for my problem...
  1 个评论
Matt J
Matt J 2013-4-1
编辑:Matt J 2013-4-1
Well, you Accepted an answer already so people are going to consider teh Question closed. Also, you've announced that you cannot use any black-box solvers like LINPROG or GA. So, there's not a lot of help we can offer.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by