Skip to main content

Hi, I created a large model by manipulating the .ams file via notepad. The total file size is 8MB. Around 0.1 million variables and 60K constraints. 

Since, I did not create this perhaps from the interface - it is taking a lot of time to open.

 

Also, say I know that the model is fully correct(syntactically and otherwise). How can I call and run it via python? I am using academic license. Please do give me a short tutorial for this. I did see the REST API but it seems too complex. Is there perhaps the CMD version of running? Can I run academic license models via CMD? If so, I think I can use the subprocess method. 

Basically, 2 question:

  1. A large custom manipulated .ams file is taking too long to open. It is in fact not opening and is in “Not Responding” state for too long. 
  2. How to call AIMMS model and run from python.

 

Thanks
Hariharan 

Hi ​@hariharangatech. Regarding your first question. Did you formulate your model as a scalar model, that is, a model that does not use indices for the variables and constraints? (Maybe you created an .ams file from a MPS or LP file?) For example, instead of using a variable X(i) a scalar model would use the variables x1, x2, x3, …, xn, where n is equal to the cardinality of the set corresponding to index i. In that case you would get n symbolic variables in your model instead of 1. AIMMS is not efficient if a model contains very many symbolic variables and/or constraints.


Reply


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

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