Blending problem with linprog

3 次查看(过去 30 天)
Rajeev kamal
Rajeev kamal 2015-9-15
回答: Alan Weiss 2015-9-16
I am learning linear programming and integer programming. As a first step i started to go through the example ina book by H P Williams- Model building*****. I try to set one of the basic problem in matlab but cant figure out what's the correct syntax.
The Problem is of oil blending with 2 vegetable oil and 3 non-veg oil to be mixed to produce y with hardness index in the range of 3 to 6. The objective function is PROF. The refining in a month of veg and nonveg oils is limited to 200 and 250 tons. The hardness is linear for mixing and is as below table for UB and LB. Finally the product mass should be sum of all inputs. that gave me the below equations:-
% 1.2 Blending Problem
% Veg1 VEg2 Oil1 Oil2 oil3 Prod Cap
% PROF- -110 -120 -130 -110 -115 150---- objective function
% VVEG- 1 1 0 0 0 0 =<200
% NVEG- 0 0 1 1 1 0 =>250
% UB- 8.8 6.1 2 4.2 5 -6
% LB- 8.8 6.1 2 4.2 5 -3
% Cont- 1 1 1 1 1 -1

回答(1 个)

Alan Weiss
Alan Weiss 2015-9-16
Perhaps the Mixed-Integer Linear Programming Basics example will help.
Alan Weiss
MATLAB mathematical toolbox documentation

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by