Page 1 of 1

(re)defining dynamic set

Posted: Mon Mar 07, 2022 4:16 pm
by jujura
Hello, I have a question.
In my problem, I need to maximize IRR (internal rate of return) for cash flow over some time period (in years). The trick is that time period and cash flow depend on the solution of the problem, so I need to define dynamic set that will have elements 1, 2, ..., n if the time period is n years. Moreover, computation of IRR depends on that set.

In other words I have equations:
eq (1) IRR=... (depends on time period and cash flow)
eq (2) time period =... (connected with cash flow)
eq (3) cash flow=... (connected with time period)

My question is: Is it possible to define dynamic set whose elements will change as the variable time period changes (keep in mind, that set should be used for computation of IRR)?