Steps to install and run lpsolve on a Windows machine

  1. Download lpsolve.
  2. I'll assume you download things to your Downloads folder.

  3. Go to your Downloads folder.
  4. You should see a file with a name like

    lp_solve_5.5.2.5_IDE_Setup.exe
    or
    LPSolveIDESetup55.exe
    Double-click on this file to run the IDE setup application for lp_solve. You will be asked some questions (such as where to install it, etc.). You can probably select yes/default for all questions.

  5. You should see a desktop icon LPSolveIDE that you can double-click to start the LPSolve IDE (it may start automatically when you install it).
  6. You should see two windows for the IDE. One is all black, and the other is not: the first one is where results will be displayed.
  7. You can enter a simple LP to test things out. In the Source tab of the IDE window, you can enter this LP:
  8. min: x+y;
    3x+10y>=20;
    50x+7y>=199;
    int x,y;
    
  9. Click on the Options tab in the IDE (the small one, in the row Source - Matrix - Options - Plugins).
  10. Then click Messages.
    Then next to "Print Sol" select True.

  11. Click on the green arrow to run lpsolve and solve this LP.
  12. In the window that was originally black, you should now see a bunch of text, including this:
  13. Value of objective function: 5.0000000000
    
    Actual values of the variables:
    x                                4
    y                                1
    

    You can copy and paste from this window into, for example, NotePad or other text editor.