I didn't notice you only wanted to change the upper bound of x[28]. Of
course adding a constraint that x[28] <= 0.8 will work fine, as long as you
are always going to be trying to make the bound smaller. But if you are
going to want to change bounds any way you like, then a more general way to
do it is
param x_ub {1..1000} > 0, default 1.0;
var x {i in 1..1000} >= 0.1, <= x_ub[i];
...
let x_ub[28] := 0.8;
> -----Original Message-----
> From: Ali Baharev [mailto:
ali.baharev@...]
> Sent: Wednesday, July 01, 2009 10:48 AM
> To:
4er@...
> Cc:
ampl@...
> Subject: Re: [AMPL 2612] change variable bound
>
> Dear Profesor Fourer,
>
> Thank you for the response. Unfortunately, i am afraid i do not
> understand your proposal.
>
> I want all x[i]-s to have the upper bound 1.0 except x[28] which
> should have an upper bound 0.8. Yasin053's proposal with presolve
> enabled gives the expected result.
>
> Is there another way to do this?
>
> Many thanks,
>
> Ali
--~--~---------~--~----~------------~-------~--~----~
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-~----------~----~----~----~------~----~------~--~---