need help creating a code

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

Wayne King
Wayne King 2013년 3월 31일
You should show the code you have written to try and solve your problem along with the places you are getting stuck and the error messages you are getting.
Nirmal
Nirmal 2013년 4월 1일
Still i have not written the code.. I have no idea of how to start writing for this one.. pls help
Walter Roberson
Walter Roberson 2013년 4월 1일
What is given and what is to be found? Are t and U and W constrained ? is s given? What is the maximum i value?
Nirmal
Nirmal 2013년 4월 1일
now i have updated my question
Image Analyst
Image Analyst 2013년 4월 1일
What is Z?
Walter Roberson
Walter Roberson 2013년 4월 1일
My interpretation was that Z is the maximum over Ri.
Nirmal
Nirmal 2013년 4월 1일
yes Z is the maximum of Ri
Nirmal
Nirmal 2013년 4월 1일
can i use linprog for this...how?
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일

0 개 추천

You would need GA from the Global Optimization Toolbox. The IntCon argument would be used to specify integer-constraints.

댓글 수: 3

Nirmal
Nirmal 2013년 4월 1일
i cannot use the toolbox as the above code would be a sub-part of the code which i'm developing for big task using PSO.
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일

0 개 추천

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.

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2013년 3월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by