필터 지우기
필터 지우기

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