You are on page 1of 1

>> %Assignment of Optimization Submitted To: Dr Ing Naveed Ramzan Sumitted By:

Tariq Mahmood Registration Number:2017-MS-CH-40


>>
>> %Function=f=Income
>> f=[-13 -11];
>>
>> %Constraints=c
>> c=[4 5;5 3;1/60 1/30];
>>
>> %Constants=b
>> b=[1500 1575 7];
>>
>> ceq=[];
>> beq=[];
>> lb=[0 0];
>> ub=[];
>>
>> %lb=lower boundry %ub=upper boundry
>>
>> [Variable,Income]=[f,c,b,ceq,beq,lb,ub]
Error using horzcat
Dimensions of matrices being concatenated are not consistent.

>>
>> [Variable,Income]=[f,c,b,ceq,beq,lb,ub]
Error using horzcat
Dimensions of matrices being concatenated are not consistent.

>>