This repository contains a MATLAB implementation of the Simplex Method for solving linear programming problems with 3 variables. The program is designed to maximize a given objective function subject to linear constraints. It is provided in two versions: one with comments in English and the other in Indonesian.
The Simplex Method is an algorithm for solving linear programming problems. It works by iterating through feasible solutions to find the optimal one, based on maximizing or minimizing the objective function.
- Objective function maximization
- Constraints of the form
Ax <= b
- Supports 3 variables
- Dynamic input for objective function coefficients and constraints
- Provides the optimal solution and value of the objective function
- Two versions: English and Indonesian
To use the program, you need to have MATLAB installed. Simply download the repository and run the script simplex_method_3vars.m
in your MATLAB environment.
- Clone the repository or download the
.m
file. - Open the script in MATLAB.
- Modify the
c
(objective function coefficients) andA
(constraints matrix) as needed. - Run the script to solve the linear programming problem using the Simplex Method.
The script will display the optimal solution and the optimal value of the objective function.
This repository includes two versions of the program:
- English Version – Comments and documentation are in English.
- Indonesian Version – Comments and documentation are in Indonesian.
You can use either version based on your language preference.
This project is licensed under the MIT License - see the LICENSE file for details.
Repositori ini berisi implementasi MATLAB dari Metode Simplex untuk menyelesaikan masalah pemrograman linier dengan 3 variabel. Program ini dirancang untuk memaksimalkan fungsi tujuan yang diberikan dengan batasan linier. Program ini diunggah dalam dua versi: satu dengan komentar dalam bahasa Inggris dan satu lagi dalam bahasa Indonesia.
Metode Simplex adalah algoritma untuk menyelesaikan masalah pemrograman linier. Algoritma ini bekerja dengan mengiterasi solusi yang layak untuk menemukan solusi optimal, berdasarkan pada pemaksimalan atau peminimalan fungsi tujuan.
- Pemaksimalan fungsi tujuan
- Batasan dalam bentuk
Ax <= b
- Mendukung 3 variabel
- Input dinamis untuk koefisien fungsi tujuan dan batasan
- Menyediakan solusi optimal dan nilai fungsi tujuan
- Dua versi: Bahasa Inggris dan Bahasa Indonesia
Untuk menggunakan program ini, Anda perlu menginstal MATLAB. Cukup unduh repositori dan jalankan skrip simplex_method_3vars.m
di lingkungan MATLAB Anda.
- Clone repositori atau unduh file
.m
. - Buka skrip di MATLAB.
- Modifikasi
c
(koefisien fungsi tujuan) danA
(matriks batasan) sesuai kebutuhan. - Jalankan skrip untuk menyelesaikan masalah pemrograman linier menggunakan Metode Simplex.
Skrip ini akan menampilkan solusi optimal dan nilai optimal dari fungsi tujuan.
Repositori ini menyertakan dua versi program:
- Versi Bahasa Inggris – Komentar dan dokumentasi dalam bahasa Inggris.
- Versi Bahasa Indonesia – Komentar dan dokumentasi dalam bahasa Indonesia.
Anda dapat menggunakan versi yang sesuai dengan preferensi bahasa Anda.
Proyek ini dilisensikan di bawah Lisensi MIT - lihat file LICENSE untuk detail lebih lanjut.