Blending problem with linprog

3 views (last 30 days)
Rajeev kamal
Rajeev kamal on 15 Sep 2015
Answered: Alan Weiss on 16 Sep 2015
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

Answers (1)

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

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!