Hello everybody,
I tried to add a constraint into my model, but I get some errors from
cplex and minos.
My first version of this constraint was:
sets: K, R, O, L
var: Ho, Ca
param: r, o
subject to answer_all {k in K}:
sum{(f,k) in R} (if (f,k) in O then 0 else r[f,k]) = sum{(f,t) in L,
(t,k) in O} o[t,k] * Ho[f,t,k];
This works well, but when I change it to:
subject to answer_all_requests {k in K}:
sum{(f,k) in R} (if (f,k) in O or Ca[f,k] = 1 then 0 else r[f,k]) =
sum{(f,t) in L, (t,k) in O} o[t,k] * Ho[f,t,k];
I get this errors:
###MINOS##
MINOS 5.51: ignoring integrality of 6 variables
MINOS 5.51: optimal solution found.
1 iterations, objective 12
Nonlin evals: constrs = 3, Jac = 2.
##CPLEX###
CPLEX 11.2.0: Constraint _scon[1] is not convex quadratic since it is
an equality constraint.
Thanks,
eL Jey
--~--~---------~--~----~------------~-------~--~----~
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-~----------~----~----~----~------~----~------~--~---