Help

Welcome to the OpenSolver on-line help.

We hope that most of your questions will be answered on the Using OpenSolver page. However, if you still have a question, please post it below.

As of July 2025, there are two known issues caused by Microsoft code changes. These are a RefEdit issue that breaks the Model dialog (see #6 below; a user can easily fix this) and a DLL access change that impacts NOMAD (see #10 below; fixing this requires editting VBA code).

Building  Linear Programming models

Writing optimisation models that only use linear mathematical equations and inequalities is not easy. However, most of the time you want to build these “linear programming” models (and avoid non-linear models) because these are easier and more reliable to solve using packages such as OpenSolver. (OpenSolver uses CBC by default to solve these linear programmes.) Check out this Wiki page on linear programming.

The AIMMS folks have a great online chapter describing how to take non-linear requirements (local copy of pdf) and model them using linear programming. (Thanks to Stu Mitchell of PuLP fame for pointing out this resource.) The NEOS guide is also a great resource. If you still have a modelling question (e.g., how do I express this requirement using the rules for a linear program), please ask it on https://www.or-exchange.org/.

Common Software Problems

Excel can have problems dealing with add-ons. Visit http://www.add-ins.com/how_to_repair_office.htm for a guide on fixing these.

1. OpenSolver not loading – July 2016 Office update (no error message)

In July 2016, MicroSoft released an update to Office 365 which prevents OpenSolver from loading unless the .zip file is “unblocked” before the files are extracted. (We expect this change to appear in other versions of Excel.) The symptoms are simply that OpenSolver does not appear in the Data tab; there is no error message shown. To fix this, delete your old OpenSolver files (but not the downloaded .zip file), right click the downloaded OpenSolver .zip file, choose Properties, and click the Unblock button which will show if the file is blocked. Once the file is unblock, close the properties dialog, and then un-zip the files and open up OpenSolver.xlam as usual.

2. Unable to find the external solver …

If OpenSolver reports this problem, then it could not find a solver file that comes with OpenSolver. Please check that you have extracted (i.e. un-zipped or uncompressed) all the files from the OpenSolver download.

3. The solver did not create a solution file.

If this error is reported, then it is likely that OpenSolver was unable to run the solver executable. This may happen if the OpenSolver files  are in an ‘untrusted’ location, and so Windows will not let them be run. First check whether the solver is shown as found in the “About OpenSolver” form. If not, go to the folder identified in the “About OpenSolver” form and double click on this solver file. You should then see a command window open that gives the solver name and version information etc. If you don’t see this, then Windows should give you an error message to help you diagnose the problem. It may help to move the OpenSolver folder (and all the files it contains) into a location such as your Documents, or even into Program Files, and try again.

4. Solver crashes; OpenSolver reports no solution file

The files in the “Solver” folder provided with OpenSolver contain the actual solver code. These solvers are being continually upgraded as bugs are reported and fixed. If OpenSolver reports that no solution file was generated, then the solver may have crashed. This can happen on big problems when the solver runs out of memory, but also on smaller problems that happen to hit a solver bug. In such cases, you should check if a newer version of OpenSolver is available since we regularly update the solvers included with OpenSolver as they are released.

With CBC, a typical OpenSolver error for thois problem message might be: ‘The CBC solver did not complete, but aborted with the error code -1073741510’

If needed, you can download the latest version of CBC, Bonmin or Couenne from AMPL. Download the either the Windows or Mac version as appropriate. For Windows, get the 32-bit version if you have 32-bit Windows, or the 64-bit version otherwise. (The 64 bit version will solve much larger problems than the standard 32 bit version included in OpenSolver, so always choose this if possible. Right-clicking on Computer, and choosing Properties, will tell you if have a 32 or 64 bit system type.) Right click on the downloaded .zip file, choose Properties, and click the Unblock button if there is one. Then, open the .zip file, and drag the files into the right location in your OpenSolver Solvers folder (the win32, win64 or osx folder as appropriate), replacing the existing files. This may fix your problem.

Report a CBC bug

If after installing the latest version of CBC, CBC still crashes on you, then you may wish to report a bug. Please be sure to include the .lp file produced by OpenSolver; you can open this file using “View Last Model .lp File”. CBC bugs can be reported by either:

  1. The online CBC TRAC bug reporting system (which you will have to register for), or
  2. The CBC mail list

Switch from CBC to Gurobi
Since August 2014, OpenSolver has also supported solving models using the Gurobi solver. You can obtain a copy of this solver at no charge if you are at a university. Gurobi is faster and more stable than CBC, and comes highly recommended.

5. Repairing Excel

Sometimes it is useful (if all else fails) to repair your Office installation:

Windows

See these Microsoft Office 2010 and later instructions (or in Excel 2007, use Excel’s application menu, then Excel Options, then Resources, then “run Microsoft Office Diagnostics”). You might also want to look at http://support.microsoft.com/kb/166273, which talks about this.

Mac

Unfortunately there is no easy way to repair the Office 2011 installation. The best option is to follow these instructions to completely uninstall Office. You can then install Office again from scratch to get a clean version installed.

6. ‘Can’t find project or library’ and ‘Compile error: variable not defined’: Missing Reference & Blocked ActiveX RefEdit Errors (updated July 2025)

July 2026 update: OpenSolver uses the ActiveX “RefEdit” control.  If this is not accessible, then you may get a “compile error: variable not defined” error (at a line containing “refObj”) when you open the Model dialog. I have also had a “Run-time  error -2147352573 (800200003)  Could not find the specified object” occur when clicking the “Model” button.

According to StackOverflow, the default setting in Excel has recently changed to a stricter level and this disables controls from external libraries like RefEdit. So, in recent Excel versions, permission to use ActiveX controls must be turned on in the Excel Trust center. To do this, use File…. Options… Trust Center… Trust Center Settings to select “Prompt me before enabling all controls with minimal restrictions” (with “Safe mode” turned on); see this screenshot. (Thanks to jkpieterse for replying on StackOverflow with this information, and for Ziad for sharing the settings that worked for them.)  It also works for me selecting the slightly safer “Prompt me before enabling Unsafe for Initialization (UFI) controsl ith additional restritions and Safe for Initialzatrion (SFI) controls with minimal restrictions”. Note that this change also causes Frontline’s Solver to crash with the error “Solver: An unexpected internal error occurred or available memory was exhausted.”

OpenSolver uses the “RefEdit” control, which we need but which can cause problems because of missing references caused by version changes. To check for missing references, using the VBA editor (which you access using Alt-F11), select OpenSolver (openSolver.xlam) in the Project window, choose Tools… References, and look for a “Missing:” line. If you see this, un-check that line, close the dialog, and choose File … Save OpenSolver.xlam to update the file. If this doesn’t help, try the above steps for repairing Excel.

7. Error 70: Unable to delete the file: C:\Users\XXXXXX\AppData\Local\Temp\log1.tmp

This errors happens if Excel crashes while OpenSolver is running, leaving log1.tmp open. Please restart your computer, which will close this file, and try again.

8. OpenSolver was working on my Mac. Then I updated to Excel 16.16.7 (released late 2018) and OpenSolver stopped working. What do I do?

We have had numerous users report this issue. We are looking for a Mac user with VBA experience to help us diagnose this problem. Please contact us at email hidden; JavaScript is required if you can help.

9. OpenSolver does not work in Excel installed from the Windows Store

Windows Store versions of Office applications do not support Add-ins such as OpenSolver; see this link, or this support page for another add-in, or this technical article from Add-in Express. This Dell article explains a little more. If you have a Windows Store version, it will display this in the Excel Version information, such as in the following example:

Version 1807 (Build 10325.20082 Microsoft Store)

The solution is to un-install Excel, and install the click-to-run versions, in which case the Excel version will change from ‘Microsoft Store’ to ‘Click-to-Run’. Standard installs (meaning not Office 365) don’t have this issue.

10. “About OpenSolver” menu crashes; NOMAD crashes (updated July 2025)

July 2025: A recent update to Excel has blocked access to the “OpenSolverNomad.dll” file that we use to execute the NOMAD solver. Symptoms of this include the “About OpenSolver” window crashing with an error: Run-time error: ’53’: File not found: OpenSolverNomad.dll
(This error occurs even though OpenSolverNomad.dll is located in the Opensolver folder under Solvers/win32 and Solvers/win64.) OpenSolver Errors also occur when trying to use the NOMAD solver.

These errors occur because Microsoft have restricted Excel’s access to DLL’s (which is what we use for Nomad). To fix this in OpenSolver you need to edit the code. (We will release a fix at some stage.) For more information, see this Microsoft Community post (also available locally). One of our users, Ed, says “I can confirm that adding the full path in the [NOMAD DLL] declare statement works”. See also this StackOverflow post.

Note: This has been confirmed for “Microsoft® Excel® for Microsoft 365 MSO (Version 2507 Build 16.0.19029.20136) 64-bit” installed as part of “Microsoft 365 Apps for Enterprise” on 12 Aug 2025.

2,231 thoughts on “Help”

  1. Open Solver not appearing in the Ribbon with Office 2010 under Windows 7

    After copying OS to C:/Documents and Settings/”user name”/Application Data/Microsoft/Addins, the application did not appear;
    I moved the files to C:\Program Files (x86)\Microsoft Office\Office 14\Library\
    Right clicked the Ribbon in excel
    Opened the Add-Ins tab
    Found OpenSolver under “Inactive Application Add-Ins”
    Pressed the button “Go…”
    Checked the Add-In
    Solved

  2. Hi;
    I want to know that what is the differences between “opensolver” and ” excel solver” solution. I tested my model in both program and got the same solution. Then, what can be said if we compare these program?
    Thanks.

    1. For linear models, they should both give the same answers. Solver can also solve non-linear problems, which OpenSolver cannot.

  3. Hi Andrew;
    Thank you very much for your support. I have one more question. What algortihm does open solver use to solve LP (Lineer programming) and IP (integer programming). Simplex, genetichs algortihm, or what?
    Also, is it use the same method with “excel solver programme” to solve these kind of problems?

    1. OpenSolver uses the COIN-OR CBC solver which uses the Simplex algorithm and branch and bound. This only solves linear programmes. Solver also uses similar algorithms for linear models. Andrew

  4. Hi Andrew;
    Thank you for your support. I have another question. Does open solver use simpex method or genethics algorithm to solve Lp (Linear programming) and IP(Integer programming)problems. OR which method does it use?
    And how about excel solver? is it use the same method with open solver to solve these kind of problems ?

  5. Thank a lot. I have 2071 constarints and 2025 variables. it solves easily. I wonder how power is this programme? I mean how many constarints and variables can beworked by this programme ?

    1. It depends on the number of integer variables, the problem’s natural difficulty, your PC’s memory and your patience. Andrew

  6. Thank a lot. I have 2071 constarints and 2025 variables. it solves easily. I wonder how power is this programme? I mean how many constraints and variables can be worked by this programme ?

  7. Hi Andrew
    I really like opensolver. And the quicksolve option is much faster than normal solve for my problem. However, quicksolve does not always produce the optimal solution for my LP. That is, sometimes, when I run a normal solve after quicksolve the objective improves!

    1. My mistake. I was missing some of my RHSparameters in quicksolve-setting. Since it was only a few the solution was optimum or pretty close to in most cases.
      Thanks for an nice solver add-in for excel.

  8. Strange error with Opensolver: it seems to be loaded but no items are present in the manu. If I reload it then the Opensolver menu appears. Same problem with xcel solver menu., I am using Excel 2013.

  9. Hi,

    I will like to know two things?

    1. What procedures do I call with VBA to perform an LP Eg. I will do the following in MS Excel

    SolverOk SetCell:=”$Z$21″, MaxMinVal:=1, ValueOf:=0, ByChange:=”$Z$2:$AN$16″, Engine:=2, EngineDesc:=”Simplex LP”
    SolverAdd CellRef:=”$Z$18:$AN$18″, Relation:=2, FormulaText:=”$Z$19:$AN$19″
    SolverAdd CellRef:=”$AP$2:$AP$16″, Relation:=2, FormulaText:=”$AQ$2:$AQ$16″
    SolverAdd CellRef:=”$Z$2:$AN$16″, Relation:=3, FormulaText:=”0″

    2. What is the maximum range of variables one can use in Opensolver? Can it handle say a 200×200 variable
    transportation problem?

    Thank you

    1. See the Using OpenSolver page on how to run OpenSolver from VBA. I suggest you set up the model outside the VBA, but your code above will work fine with OpenSolver if you prefer that approach. There is no size limit. Your transportation problem should be easy to solve. Hope this is useful. Andrew

      1. I am writing the code for someone who actually only wants it in Excel so I guess I have no choice. Thank you for the response Andrew.

  10. I was running Solver Studio on NEOS server for one day using AMPL. But today, when I turned on my computer and opened my excel file to continue experiments (MS Excel 2010), the Solver studio does not appear on my toolbar in “Data”. I tried to reinstall acouple time, but it did not work. I would really appreciate for help!

    1. Have you uninstalled SolverStudio using the Control Panel? Please post any replies on the SolverStudio, site. Andrew

      1. Yes, I used the control panel. The Problem was with Excel. If I stop Excel from task Manager then OpenSolver add-on becomes disabled, and you have to enable it in the Excel “Options”.
        P.S. Sorry could not see the “Leave the reply” on the http://solverstudio.org/ Is it enabled?

  11. Dear Andrew,
    We had over 50000 downloads of open solver and hence are a big community now.
    The last stable version of Opensolver is now over 1 year old.
    We have heard news of integration of NOMAD non-linear solver to the open solver platform in Feb,2013.

    We are looking forward eagerly to see what new additions have been done to open solver.
    Request to kindly set the next release up as soon as possible.
    Many Thanks,
    Parag Jain

  12. Hello,
    I would like to ask. What is the difference in the process when I just press “Solve”-button and press “Solve LP relaxation”? The running time is much faster when I press “Solve LP relaxation”.

    1. The latter allows solutions to have fractional values like 0.67 even if you have bin or int constraints. Andrew

  13. Hi all. I’ve begun using Excel Solver for a college course, and I can’t get it to allow me to enter a binary Constraint. (Excel 2010)

    The cell reference (left box) is general format. The middle value is “=” and I want the Constraint to be binary (1 or 0) so I type ‘binary’ (without the quotes). There is no dropdown menu under the constraint box.

    Whenever I click ‘ok’ or ‘add’ I get the same message— “Constraint must be a number, simple reference, or formula with a numeric value.”
    I thought typing ‘binary’ would meet the ‘simple reference’ requirement, but apparently not.

    Any help would be appreciated.

    1. Also, the cell reference I’m trying to set as binary is included in the ‘Decision Variables’ cell range.

Leave a Reply to Parag Jain Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.