Skip to content

varunvd/python-for-operation-research

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python

This program is going to perform definite integration it requires the user to specify the upper limit, the lower limit and expression. It is written in python and requires the user to provide the input in a corresponding manner.

Example : -

    Lower Limit = 0
    Upper Limit = 1
    Expression = x
    Answer = 0.5
    
    Lower Limit = 0
    Upper Limit=1
    Expression = x^2+5
    Answer = 5.33

Another program convert^topow.py is used to convert the expression having ^ to pow(). It requires the trignometeric and logrithmic functions to be placed within parenthesis.

Example : -

    Expression x^7
    Output pow(x,7)
    
    Expression (sin(x))^34+98+(x-5)^33+89^66
    Output pow((sin(x)),34)+98+pow((x-5),33)+pow(89,66)

The Program standard form of LPP is going to return the values in the standard form. The Program simplex.py is used to evaluate the objective function and return the maximum value of the objective function.The constraints must be in the standard form. Example :-

   Enter the objective function
   z-2x1-2x2-0x3
   Enter the number of constraints
   2
   3x1+5x2+3x3<=5
   4x1+2x2+5x3<=8
   Objective Function Value3.33333333333
   x1 1.66666666667
   s1 1.33333333333

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages