Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two_variables_functionality #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Richajaishwal0
Copy link
Contributor

This Python script implements a Simplex method for optimizing a given objective function. It performs the following steps:

  1. Setup: Imports necessary libraries and defines helper functions.
  2. Input Handling: Takes user inputs for the objective function and the initial vertices of the feasible region.
  3. Simplex Method Execution: Iteratively evaluates the function at each vertex, updates the vertex list by removing the vertex with the highest function value, and adds new vertices as needed until convergence.
  4. Output: Prints formatted tables of vertices and function values at each iteration, and outputs the final results including the minimum function value found.

The script also handles the case where only two initial vertices are provided by calculating and adding a third vertex to form a triangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants