Forum Discussion
FICO
4 years agoCommunity Manager
Run multiple experiments for the same model with different input data in a loop
Hi, I am trying to run all my experiments (e.g. same model, slightly different input parameter values) in a consecutive loop instead of separate. Such that I do not have to change my input .xlsx fil...
FICO
4 years agoCommunity Manager
Scalar values are simply replaced when they are assigned new values. If you are re-initializing an array with new data there are 2 cases: (a) the new data set defines the same index tuples: reading will overwrite existing contents, so there is no need for 'reset' or dynamic; (b) the data sets have different index tuples: you need to make sure to clear the entire array before re-initializing it, this is done when applying 'reset' to a sparse array (array declared as 'dynamic' or 'hashmap'). The 'reset' needs to be called individually for every array.
An alternative to the above might be to move the contents of the loop along with the declarations into a subroutine so that the loop invokes a subroutine in every iteration: by moving declarations into a subroutine you turn them into local entities that only exist within the respective subroutine, that is, there is no need for an explicit call to 'reset' as the arrays will disappear at the end of the subroutine where they have been declared.
Related Content
Related Content
Can we manage to import multiple DTAB from a single Excel which will have multiple sheet of different DTABs.
Suppose I have two DTABs named A and B. I want to maintain a single Excel workbook containing two sheets named A and B. Whenever I need to import a DTAB, it should be retrieved from the workbook by m...0Views0likes3CommentsDifferent path taken by Xpress Optimizer for solving
We are using Xpress Optimizer version 9.4.0 and have observed differences in how the same problem is solved when: The model is constructed programmatically by creating constraints, variables, etc. ...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread1View0likes2Comments