Skip to main content
Solved

Extracting list of constraints

  • June 10, 2024
  • 2 replies
  • 67 views

Forum|alt.badge.img

Hi there, 

This might be a trivial question, but what's the easiest way of extracting a list of "active" constraints from a math program? Essentially I want the list of constraints names in the Math Program Inspector, exported into a text file. 

The reason behind this requirement is that I have two very similar LPs that I want to compare, to identify why they differ.

I've tried: the constraints listing file (too large / complex and some formatting differences make it difficult to DIFF), exporting AllConstraints. What other options are available?

Thanks!

 

Best answer by Marcel Hunting

Hi @bazza. I would print the constraint listing files for both LPs and then compare them using the CompLis tool, as explained here.

2 replies

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4
  • AIMMSian
  • 258 replies
  • Answer
  • June 10, 2024

Hi @bazza. I would print the constraint listing files for both LPs and then compare them using the CompLis tool, as explained here.


Forum|alt.badge.img
  • Author
  • Enthusiast
  • 1 reply
  • June 10, 2024

Thank you, Marcel - that's a very useful sounding tool.



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

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