« Return to Thread: [AMPL 2567] Problem witn Hessian

[AMPL 2568] Re: Problem witn Hessian

by Paul A. Rubin :: Rate this Message:

Reply to Author | View in Thread


The objective is indeed convex.  The problem is that you are
maximizing it.  CPLEX requires that you be minimizing a convex
function or maximizing a concave one.

/Paul


On Jun 3, 6:56 am, zine00fex <zine00...@...> wrote:

> Wath's the meaning of this error message?
>
> CPLEX 11.2.0: 30 diagonal QP coefficients of the wrong
> sign:
> Variable
> Diagonal
> _svar[30]
> 1
> _svar[29]
> 1
> _svar[28]
> 1
> Diagonal QP Hessian has elements of the wrong sign.
>
> I don't understand because my objectiv function is:
>
> maximize compattezza: sum{i in PROF, j in GIORNI, l in CLASSI, k in
> TURNIPOS} phi[i,j,l,k]*phi[i,j,l,k];
>
> where phi is a binary variable, and so I think it is convex and
> quadratic.
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: [AMPL 2567] Problem witn Hessian