Replies posted by AlexK
Hi! Tried to reproduce your example, but, to use axll::WriteTableQuick the parameter needs to be with one dimension or more. With no dimension, I received an expected error. Did you tried axll::WriteSingleValue(ScalarReference,Cell) ? Either way, in this example I used both import and export with AXLL library. Check this (https://github.com/aimms/knapsack) out! Hi, i didn´t think about specifying that but the reference parameter is actually indexed. Its LeadTimeOfOperation(i). I just didnt know i had to write that in this part of the code aswell since it didnt give an error message. Now i tried it and it works.Thank you.
@Gertjan I did the 1 hour tutorial before i began to program my model. It helped a little bit, but since my program is a little more complex than the one in the tutorial it can´t answer all my questions. I also read many of the Aimms Instructionbooks. @ all I have yet another question that i cannot seem to solve. I have the following constraint: BidPreis(h,t) = InitialBidPreis(h) + (sum [t_aux| (ord(t_aux)< ord(t)), AvailableCapacity(h,t_aux)-AvailableCapacity(h,t) ]) With this constraint i want to set the Bid Price for a ressource h in a specific period t. It is meant to be based on the InitialBidPreis(h) + the difference between the Available Capacity for h from the last periode and this period. But i dont know how to adress just the last period before t and not all of them. Help would be greatly appreciated.
Thank you very much for your quick reply. I implicated your advice into my program and it did work well. Sadly I´m just at the beginning of the program and may encounter some more issues, as I´m, as is previously mentioned, absolutly new to Aimms. Would it be okay to ask some more questions if they should occour?
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.