Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

coder190323/LpSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

LpSolver

Linear programming

Prerequisities

Make sure lpsolve55.dll and lpsolve55j.dll are placed in System32 folder based on system type i.e., 32bit or 64 bit
download link

Executing program

Use below command to execute jar file. Executable jar file is located in executable folder

java -jar LpSolver.jar

User input

Application input in below format

Problem statement

Maximize: 143x+60y
Subject to:
120x+210y <= 15000
110x+30y <= 4000
x+y <= 75

Enter number of unknown variabls
2
Enter number of unknown variabls
3
Enter your 1 constraint
Enter coefficient value for unknown variable : 1
120
Enter coefficient value for unknown variable : 2
210
Enter constraint equality
1 for Less than eqaul to
2 for Greater than equal to
3 for equal to
1
Enter constraint value :
15000

repeat for other two constraints..
Enter Objective function
Enter coefficient value for unknown variable : 1
143
Enter coefficient value for unknown variable : 2
63

Expected output

After entering above input, expected output is

Value of objective function: 6315.625
Value of var[0] = 21.875
Value of var[1] = 53.12499999999999

Authors

  • Pranav Chikodi - Initial work - pchikodi

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Linear programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /