AMPL - bigM

View: New views
2 Messages — Rating Filter:   Alert me  

AMPL - bigM

by franzl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there!

I just got started with ampl and i have to use "bigM" as in:

cumdemand[i,k] + demand[j] - cumdemand[j,k] <= (1 - x[i,j,k]) * bigM;

but how can i implement this without using a numerical value for bigM?

thx for your help

[AMPL 2599] Re: AMPL - bigM

by Komul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


You may try something like:

param bigM := sum{i in X, k in X} cumdemand[i,k]  + sum{j in X} demand[j];

greetz
Christian

franzl schrieb:

> Hi there!
>
> I just got started with ampl and i have to use "bigM" as in:
>
> cumdemand[i,k] + demand[j] - cumdemand[j,k] <= (1 - x[i,j,k]) * bigM;
>
> but how can i implement this without using a numerical value for bigM?
>
> thx for your help
>  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---