Topic
1 reply Latest Post - ‏2012-11-22T16:59:08Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts
ACCEPTED ANSWER

Pinned topic Error:CPLEX(default) can't extract model...

‏2012-11-21T11:42:58Z |
Hi!My model deals with time-of-use electricity price P[t].It aims to find the right time to use a given amount of electricity so that the cost is minimized.

The dvars are:
StartTime[n],EndTime[n]

The objective:
minimize sum(t in StartTime[n]..EndTime[n]) (price[t]*Power);

The Problem is:
CPLEX(default) can't extract model: minimize sum(t in StartTime[n]..EndTime[n]) (price[t]*Power);

It seems that for sum(t in x..y) (...) , x and y cannot be dvar.

Can anybody suggest me some alternatives?

Best Regards.
Updated on 2012-11-22T16:59:08Z at 2012-11-22T16:59:08Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1883 Posts
    ACCEPTED ANSWER

    Re: Error:CPLEX(default) can't extract model...

    ‏2012-11-22T16:59:08Z  in response to SystemAdmin
    Hello,

    In the expression "sum(t in StartTime[n]..EndTime[n])" what is n? If it is not a constant this will not work. And it actually can not be a constant because it is an index in "StartTime[n],EndTime[n]" definition.

    Can be helpful if you post the whole code.

    Regards,
    Zahar