Topics about getting started or leveling up as an AIMMS developer. Datalinks, AIMMS language, building apps...
- 485 Topics
- 1,055 Replies
Dear All,I have a question on how to limit the range of an index and since I’m new to Aimms I can’t find a proper solution. I just want to limit certain indices to a certain range for a specific constraint.First example (Constraint):Index Domain:tDefinition: e(t) <= e(t-1) |t<Tmax |t>TminError Message:In an inclusion only the middle term is allowed to contain variables, however in the inclusion e(t) <= e(t-1) $ t < Tmax $ t the left term contains variables. Second Example (Constraint):Index Domain: (i,j,k,t)Definition: r(i,j,k,t) <= o(i,k-1,t-1)*RM(i,j) |k>1|t>1Error Message: The operators <= and > should to be the same for numerical inclusion (or use parenthesis). As I’m new to aimms I dont seem to understand the principles properly. May someone point me to the right way to do this?Thank you very much in advance!Best RegardsJonas
I have several problems but I think they are related to each other. For all my constraints I get the warning “The index “i” already has a scope” and I also get this warning when I want to enter my data. Also when I want to specify the objective for my Mathematical Program I get the warning: “Expecting a scalar identifier (no free indices)”. I’ve added pictures of one of my constraints, the warning from the Mathematical Program and my Set where I believe the problem might be with the index i. But I don’t really know how to fix it so if someone could help me I would be very grateful.
HelloI have created another model for practice on AIMMS for inventory optimization. There are no errors during compiling however I am getting the attached error while running the procedure in the Main Execution part. The model and the error have been attached as a zipped file for reference. Thank you for all the help!
hello,I was studying the tutorials provided by AIMMS and I came across a Production Model in the PDF Document for AIMMS for Professionals Tutorial. I’ve tried to open the file to see if it works but I come across the following errors as attached and it will not let me execute the model. The zipped folder with the model has also been attached for your reference. Thank you for all the help!
I have created a model on AIMMS for production. There are no errors but still we are not getting any result. I tried multiple modifications, but I am stuck. I am attaching the model for reference. The formulas have not been used anywhere else except for the attached files.
Dear community,I just rolled into AIMMS, so the application is very new to me.I came across a problem with implementing constraints into my model. You can see the specific constraint and my model in the attached illustrations. After filling in the definition for the constraint, an error popped up, saying "The scope of index "cred" has not been specified.", where "cred" is the index domain for the variable "CarbonCredits".I already tried to re-implement the whole model, change the index and i messed around with different brackets in different positions. Nonetheless, i kept getting the same error.I would appreciate it if someone could help me out. A picture (of an example) on how the definition of this constraint should look like would be phenomenal as well.Thanks in advance, Stijn
Dear All, My name is Mohamad Khaled and for my university research project I am using AIMMS to model a 3-echelon Pharmaceutical Supply Chain model. The current model I’m trying to define and solve is a simple one compared to some of the models I have seen here. I have two issues with my current model: The first issue is that the pharmaceutical products (AKA medication) has an uncertain demand which I am not able to properly define in the project despite indicating the index domain, using the uncertain option in the property setting and defining the box function with an upper and a lower value in the region area. (I attached a screenshot of the demand parameter with the descriptions and region and another screenshot of the current “nominal” data of the demand) The second issue is the wastage/expiration of the medication. I have defined a shelf-life variable and respective constraint, however, I couldn’t get the shelf-life variable to be used in the wastage constraint as the following w
I run Power System Optimizer (PSO) developed on AIMMS. The current version of AIMMS we have is 188.8.131.524 on the windows server. The software ran with no issues till last week. However, after probably the server update, AIMMS crashes each time I read input files and throws the following error: the thread tried to read from the virtual address for which it does not have the appropriate access. I am not sure what the issue is as the input folder has complete privileges for read/write.
Why do we need docs? You may be thinking – I’ve got a million things to do before I can deliver an app to my client, I don’t have time to write documentation!But consider a time you’ve downloaded a tool, or tried to connect with a component library, or even tried to put together a piece of furniture and discovered that the documentation is impossible to understand or, worse, not there at all. Consider another time where the documentation was easy to use, and you probably don't even remember reading it – you just followed the directions and it worked. Which situation would you like your user to face? This also applies to a time when you’ve tried to work on a group project, or taken over a project after someone else. Isn’t it nice when someone explains what they’ve done, how, and why? Docs for your team This is documenting how you made the app in the developer platform. Write them for anyone who may be working on your app, now or in the future. Even if you're a team of one, it's a good
Hi there,I’m having an issue with AIMMS which is preventing the advanced text editor from working.When I launch AIMMS I get a Windows pop-up asking to install the Microsoft .NET framework 3.5. Then in AIMMS I get the error:Unable to locate the SyntaxEditor .NET assembly, falling back to ordinary editor.However, my machine is already operating the .NET framework 4. I’m using a work machine so am unable to roll back/install the older framework.I’m running Aimms-184.108.40.206-x64-VS2017.Has anyone had this issue?Any ideas on how I might be able to get it working?Thanks for your help!
In our team, we are working on a linear energy system model which is expanding every day. We use the LP Gurobi solver with multi processing. Currently, it has 250M non-zeros (after presolve) and we think it will grow to more than a billion. If the computational capacity (let's say several hundreds GB of RAM) is present, is there any limitation on the problem size on AIMMS side?In particular I am interest in any limitation on number of variables, constraints, or non-zeros? or any limitation on the capacity of committed RAM or number of CPU cores for parallel computing?
It is probably very simple, but i cannot figure it out and i need to get it done asap. Really appreciate any help!I have created a project that runs and gives me solutions. Now, i need to create another version of my model with major changes, but to make it faster i would like to “save as” the entire current project and then start making my changes. the “save as” menu only makes another copy of .ams file within the current project, but doesn't make an entire new project. i also tried to export a section, but the “Export” menu is not active.could anyone advise on how?
Is it possible to initialize local parameters, which have the property RetainsValue set? The first time, that the procedure/function is called, I would like the parameter to be initialized by a certain value. Afterwards, when the procedure/function is called again, I would like the parameter to keep the value from the previous procedure call.If I set Initial data for the parameter, the behaviour of RetainsValue is lost and the parameters is initialized with that value in every call to the procedure.
Hi community,I have a three-dimensional parameter I would like to import. I know how to import one- and two-dimensional parameters, but do not know how to do this one. The data is stored in excel (I have attachted a snapshot as illustration of the structure of the data), I can extract (with some formulas in excel) the range (AM3:AO32) from which i would like to import the data. I also know the number of products (6), number of locations (5) and number of time periods (3). Can someone help me out with this?
Hi All,For a project we are implementing a user is making changes to a relatively large table. The user has the possibility to store these changes in a database.However, when a user closes his/her browser after having made these changes and forgets to store the changes in the database the changes have to be made all over again. Is there a way to raise a warning when closing the browser? In this case that would refer to a user that has made changes, but has not stored them in the database.I know using a uponleave procedure works when navigating to a different page, however when closing a tab no warning is raised using such a uponleave procedure. Furthermore, I have seen multiple sites raising a warning when closing the tab, so curious to see if this is possible to do in the AIMMS WebUI as well!
I find that unit conventions are an effective way to display data in different units. E.g. capacity in #items/day, with accompanying cost €/day, are relevant numbers for location specific KPIs. On a higher level, we can change convention to e.g. #mio Items/year, or mio€/year.However, I don't want to apply the selected convention on all my model identifiers. E.g expressing cost per item as €/item, and not as mio€/mio Item when the yearly convention would be selected.Is there a way to override the conventions in model identifiers, and thus explicitly define what uom to always display?Thanks!
At AIMMS User Content we made a choice regarding the naming convention to be used and would like to share the considerations we had to derive at our choice. What do you think? What are the considerations you used for the naming convention you use?see Identifier naming convention
Hi, i found something strange in my MILP model.I read my input from an excel file to fill my parameter. The input looks like this: I retrieve this from Excel by the following lines:And eventually in AIMMS it looks like this:What is so special about this column 7 and 8 that they are moved to the left? What can cause the order of the column to be changed without me noticing? Note: Also in my set DiscountLevel, the order is changed:
Hello! We used to read csv files using a tool called “FFRead” provided by AIMMS. The tool allow us to merge multiple tables of csv data in the same file — below is the content of such a file:I,Table1,City,PopulationD,Table1,Paris,45D,Table1,Lyon,47I,Table2,Country,PopulationD,Table2,UK,76D,Table2,France,89 As “FFRead” is not actively maintained, we are switching to “DataLink” and “CsvProvider”. Does these new tools provide the possibility to read multi-table csv data? Or we must create a new csv file per table?Thank you;Amritbir Gill
Hi.I am working to develop a tool that reads some input data from an access database, solves an optimization problem, and then exports results to an output access database. The data import process worked fine when I was accessing the user interface (UI) in page manager. Then, I created an .aimmspack file for deploying the tool for end-user use. Now, when I run the tool from pack file (end-user UI), I get this error during input data reading (image attached). Could someone please help with this error? Could this error be due to me missing to include something during .aimmspack file creation? I have not included the input access database file while creating the pack file. Referring to the image attached, ‘RPS’ is a group in input access database file. Thanks for your help.
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.