Skip to main content

Welcome, Anonymous

search index

Can I use an older version of BARON with a newer version of the MATLAB/BARON interface?

The interface should work with all BARON versions. However, licenses typically cover the BARON version available when the license was issued and any newer versions released during the maintenance period, so your license may not work with older BARON versions.

Can I use a factorial function with the MATLAB/BARON interface?

The MATLAB interface may accept the algebraic structure, but BARON does not accept factorial directly. Loops cannot depend on the value of a decision variable. 

If the variable is a bounded integer, you can model factorial exactly using binary variables to select among known factorial values for each possible integer value.

What if I get the error, 'ALAMO terminated with termination code 1.'?

This error means ALAMO was launched without a required input file. To fix it, provide an ALAMO input file (e.g., example.alm) as a command-line argument when starting ALAMO. 

Can I use the MATLAB/BARON interface for black-box functions where the model is unknown?

No. BARON requires an algebraic model (explicit equations), so black-box/unknown models are not supported.

Can I use BARON with IBM CPLEX if I’ve already installed CPLEX?

Yes—BARON’s interface is generally backward/forward compatible with many CPLEX versions. See CplexLibName option in the BARON User Manual and provide the full path to the CPLEX library file (.dll / .dylib / .so).

How can I successfully run parallel instances of BARON with the MATLAB/BARON interface?

Avoid naming conflicts by setting barscratch to something unique per run (e.g., random value or based on the process id (pid)).

How do I make parallel instances save temporary files in different locations?

The interface uses a scratch directory with a default name unless you override it. Control the scratch directory name/location using barscratch.

How can I create a large set of nonlinear constraints in the MATLAB/BARON interface?

The OPTI Toolbox page lists methods for efficiently building large nonlinear constraint sets (e.g., programmatic construction patterns).

What if I get: “A valid BARON license is required for this model”?

You need to purchase a BARON license. Alternatively, you can run BARON for free via the NEOS server (subject to NEOS limits/policies).

What if I get an error saying my license file is not valid for this BARON version?

Putting the license file on the MATLAB path is not sufficient. Ensure you specify the complete path to the license file in the BARON options.

What if I get an error saying the license file cannot be found?

You may be running an older BARON executable while your license only supports newer versions. Remove/avoid the old executable or reorder your PATH so the newest BARON is found first.

What if I installed the interface, but it fails to install the license after I added the license path?

Most commonly: (1) your BARON executable version is incompatible with the license you’re using, or (2) the license path is specified incorrectly.

What if I get an error in MATLAB after adding the barin executable file to the Interface folder?

Confirm:

  1. You copied the BARON executable into the Interface folder.
  2. Install with root/admin privileges if possible (to avoid repeated installation). Then:
  • Rename the executable from baron to barin.
  • Put a copy of your BARON license somewhere on your PATH (if unsure, place it next to barin in the interface folder).
Where can I find ALAMO tutorials?

You can find ALAMO tutorials on the official ALAMO Downloads page, which includes example files, user guides, and documentation to help you get started. For additional help, you can also email info@minlp.com.

What if I get an error message saying there was an error opening the timing output file?

Run BARON directly from the system command line to confirm the license works and the executable wasn’t corrupted. Example on Windows: open cmd, navigate to the BARON folder, and run baron.exe path-to-file-to-run.

How do I get out of demo mode while using MATLAB/BARON with CPLEX?

Demo mode indicates you need a valid BARON license. Contact sales@minlp.com to purchase a license.

What if I run the examples included in matbar.zip and the BARON executable does not work?

Place the Intel library in the same directory as the BARON executable (which becomes barin.exe after renaming).

How can I get further technical support?

Email info@minlp.com. Include:

  • A screenshot of warnings/errors

  • If BARON runs, use filekp to generate the scratch directory and send it, including the .bar file so support can reproduce and diagnose the issue.

How do I get an ALAMO license?

To request an ALAMO license:

  1. Please visit the ALAMO Licenses page to view available types and pricing. Academic users, CAPD sponsors, and DOE researchers qualify for free licenses. 

  2. Send an email to sales@minlp.com with the following information:

    1. Your name, email, and institution

    2. License type (e.g., annual single-user)

We will send payment instructions (if applicable), followed by your license file and activation details.

Is there a free trial for commercial use?

ALAMO does not offer a free trial for commercial use. However, commercial users can purchase a monthly license at a low cost to evaluate the software. If you later purchase an annual license, the cost of your initial monthly license can be credited toward the upgrade.

What if I requested a license online but did not receive it?

If you requested an ALAMO license but have not received it within 30 minutes, please:

  1. Check your spam or junk folder for an email from @minlp.com or @theoptimizationfirm.com.

  2. If not found, email info@minlp.com to follow up and confirm your request was received.

Delays can occasionally occur due to email filters or missing information in the request.

Why do I get a browser error when registering for a license?

Browser errors during license registration are often due to:

  • Network restrictions (e.g., firewalls on institutional or government networks) 

  • Outdated browsers or unsupported versions

  • Disabled JavaScript or strict browser privacy settings

Try using a different browser (e.g., Chrome or Firefox) or network. If the issue persists, contact info@minlp.com to generate a license for you.

What if my CAPD sponsor license expired?

Go to https://minlp.com/baron-licenses-capd-sponsors and submit a new request. Renewals are free for active sponsors.

Do national labs qualify for free licenses?

Yes! Researchers affiliated with U.S. national laboratories can create a user account and request a free license here. If you have questions, email info@minlp.com.