Topic
  • 2 replies
  • Latest Post - ‏2013-05-02T14:28:09Z by Aaronlidebiao
Aaronlidebiao
Aaronlidebiao
5 Posts

Pinned topic Min-max optimization

‏2013-05-01T17:56:24Z |

Hi,

I tried to do a optimization by minimizing the sum of the chebyshev distance. The chebyshev distance is the maximal absolute value of the two points' x and y coordinates.

Assume the x[i] and y[i] are the variables, How to express the min-max.

If I express as follow, there is a error message in Cplex.

minimize

max(x[i],y[i])

 

Thanks.

Regards,

Aaron

  • Petr Vilím
    Petr Vilím
    14 Posts
    ACCEPTED ANSWER

    Re: Min-max optimization

    ‏2013-05-02T09:00:37Z  

    Hello,

    If I understand correctly, try to use maxl instead of max. The keyword max is reserved for a maximum over a set:

    max (i in 1..10) x[i]
    

    while maxl gives maximum from a fixed list of parameters:

    maxl(x[1], y[1])
    

    Best, Petr

  • Aaronlidebiao
    Aaronlidebiao
    5 Posts
    ACCEPTED ANSWER

    Re: Min-max optimization

    ‏2013-05-02T14:28:09Z  

    Hello,

    If I understand correctly, try to use maxl instead of max. The keyword max is reserved for a maximum over a set:

    <pre dir="ltr">max (i in 1..10) x[i] </pre>

    while maxl gives maximum from a fixed list of parameters:

    <pre dir="ltr">maxl(x[1], y[1]) </pre>

    Best, Petr

    Thank you very much. Petr.

    Regards,

    Aaron

  • Petr Vilím
    Petr Vilím
    14 Posts

    Re: Min-max optimization

    ‏2013-05-02T09:00:37Z  

    Hello,

    If I understand correctly, try to use maxl instead of max. The keyword max is reserved for a maximum over a set:

    max (i in 1..10) x[i]
    

    while maxl gives maximum from a fixed list of parameters:

    maxl(x[1], y[1])
    

    Best, Petr

  • Aaronlidebiao
    Aaronlidebiao
    5 Posts

    Re: Min-max optimization

    ‏2013-05-02T14:28:09Z  

    Hello,

    If I understand correctly, try to use maxl instead of max. The keyword max is reserved for a maximum over a set:

    <pre dir="ltr">max (i in 1..10) x[i] </pre>

    while maxl gives maximum from a fixed list of parameters:

    <pre dir="ltr">maxl(x[1], y[1]) </pre>

    Best, Petr

    Thank you very much. Petr.

    Regards,

    Aaron