tugas i komputasi phyton

Upload: fajri-amrullah

Post on 10-Jan-2016

230 views

Category:

Documents


0 download

DESCRIPTION

Komputasi Proses

TRANSCRIPT

TUGAS I KOMPUTASI 1. Carilah nilai X1 dan X2 yang memenuhi kedua persamaan dibawah dengan menggunakanSolver pada Ms.Excel.f1(x) = 2X12 + 3X22 - 50 = 0f2(x) = 2X12 - X22 - 9 = 0Initial guess X1 = 1, X2 = 1

Langkah langkah pengerjaan : Buka solver Set f1(x) sebagai objective Value of f1(x)= 0 Variabel berubah : X1 dan X2 Add Constraint f2(x)=0 Solve Didapat nilai X1=3,102418 dan X2=3,201562

2. What are the optimal production rates of gaseous and liquid fuels that maximize the net profit of the plant?Objective Function : 3X1 + 5X2 = ZConstraint:Pretreatment Capacity : 3X1 + 2X2 18Gasification Capacity: X1 4Liquefaction Capacity: 2X2 12Non Negativity: X1 0 X2 0 Langkah langkah pengerjaan : Buka Solver Set Z sebagai objective Pilih Max Variabel berubah : X1 dan X2 Tambahkan semua constraints Solve

3.