Cplex to solve discouted cash flow

asked 2014-11-18 11:17:52 -0500

Hi,

We are working on a project to consider discounted cashflow in MRCPSP problems. We are having trouble implementing discounted cash flow concept in our cost objective function.

The actual code, not considering discouted cash flow is:

minimize(sum(m in Modes)m.costpresenceOf(mode[m]))100

which minimizes the cost of the project .this function adds up all the cost related to each mode of activity.what we need is for each mode the function consider the cost and the finish schedule of each activity.

rate = annual interest rate discounted cash flow= cost x (1-scheduled finish time of activity x rate)

What we have tried is:

minimize(sum(m in mode))m.cost(1-rate(m.Duration))presenceOf(mode[m]))100

which is not correct , and it considers the duration of activity what we need is finish time of activity to be calculated.

Thank you very much for your help,

Pernelle and Mehdi

edit retag flag offensive close merge delete

Comments

Hi! Can you point out how this is related to Sage? Sage does have an interface with CPLEX but I don't know if we can help too much with code for that straight up, as it is not a part of Sage, only something our MILP solver can use as a backend. Do you have some Python/Sage code that is causing problems you can update the question with? Thanks!

kcrisman gravatar imagekcrisman ( 2014-11-18 11:38:18 -0500 )edit