Linear programming
Make sure lpsolve55.dll and lpsolve55j.dll are placed in System32 folder
based on system type i.e., 32bit or 64 bit
download link
Use below command to execute jar file. Executable jar file is located in executable folder
java -jar LpSolver.jar
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
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
- Pranav Chikodi - Initial work - pchikodi
This project is licensed under the MIT License - see the LICENSE.md file for details