Chris,
CPLEX cannot handle constraints with terms like "min {i in D} x[i]" in them --
specifically, terms using the "min" operator. This operator makes the
constraint nonlinear, but CPLEX can handle only linear constraints and certain
varieties of convex quadratic constraints. All of the latter are inequalities;
hence the error message. ("_scon[1]" refers to the first constraint sent to
the solver.)
Your best hope of using CPLEX to solve problems containing the "min" operator
is probably to convert them to problems in linear constraints. Depending on
the specifics of the constraints, you might need to introduce some zero-one
integer variables as well.
Bob Fourer
4er@...
> -----Original Message-----
> From:
ampl@... [mailto:
ampl@...] On Behalf Of Chris
> Sent: Monday, June 16, 2008 2:16 PM
> To: AMPL Modeling Language
> Subject: [AMPL 1834] Constraint _scon[1] is not convex quadratic since it is
> equality constraint
>
>
> Hello, I got an error message as in the subject while i tried to use
> AMPL + Cplex to solve some optimization with the constraint of the
> following kind
>
> set D :=1..10;
>
> var x {D};
>
> subject to con1: (min {i in D} x[i]) = ...;
>
> does anybody know the reason for this? thanks a lot!
>
> best,
>
> chris
>
--~--~---------~--~----~------------~-------~--~----~
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-~----------~----~----~----~------~----~------~--~---