Compare the constraints/ variables written in AIMMS project and constraints in .lp file generated from that AIMMS project

  • 31 January 2023
  • 1 reply

Badge +2

I have an AIMMS project. I have downloaded .lp file from the AIMMS project. 

Is there any way so that I can compare the the constraints written in .lp file and constraints what I have written inside an AIMMS project.


Best answer by Marcel Hunting 31 January 2023, 10:45

View original

1 reply

Userlevel 5
Badge +4

Hi @RwitamJ. You can print the constraint listing of the math program that AIMMS generates by setting the following Solvers General options:

  • 'Constraint Listing' to 'At every solve' (or 'At first solve')
  • ‘Constraint Listing Variable Values' to 'Print variable values'

The constraint listing will be printed in the listing file (.lis) in the log folder. By setting the Solvers General option ‘Solver Column Row Mapping’ to 'At every solve' (or 'At first solve') AIMMS will print a mapping between the columns/rows in the constraint listing and those used in the LP file; this mapping will also be printed in the listing file. But you can only use this mapping if the LP file is created from the same AIMMS project.


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator