Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  how to assign a constraint with a maximum expression

    Posted 11/29/10 02:19 AM

    Originally posted by: QINGQINGQING


    Dear all

    I am now using cplex with java to handle a MIP problem
    ,
    and there is a constraint with a maximum expression
    :
    a[i]=max{a[j],t[i][j]}
    ,
    where a[i] and a[j] are both IloNumVar variables, while t[i][j] is a double variable.

    I do not know haw to handle this situation, so I am asking for your heip

    Thank you
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to assign a constraint with a maximum expression

    Posted 11/29/10 04:40 AM

    Originally posted by: SystemAdmin


    Did you read the user manual and the reference documentation for Java? It is all there!
    cplex.addEq(a[i], cplex.max(a[j], t[i][j]));
    

    Please also look at the various Java examples provided with CPLEX. I am pretty sure example code for all of your questions can be found there.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: how to assign a constraint with a maximum expression

    Posted 11/29/10 01:07 PM

    Originally posted by: QINGQINGQING


    cplex.max()???
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: how to assign a constraint with a maximum expression

    Posted 12/28/10 08:39 AM

    Originally posted by: xiongxiongxiong


    there are no such function in cplex9.0 java
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: how to assign a constraint with a maximum expression

    Posted 12/28/10 01:59 PM

    Originally posted by: SystemAdmin


    There are now two duplicate threads (by the same OP), so I suggest nobody respond further to this one.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: how to assign a constraint with a maximum expression

    Posted 11/29/10 08:33 AM

    Originally posted by: SystemAdmin


    Please have a look at this post. IBM is generous in allowing their support staff to answer technical questions on this forum, but in my opinion asking them to write your program for you line by line is an abuse of that generosity.

    Paul Rubin

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: how to assign a constraint with a maximum expression

    Posted 12/28/10 07:47 PM

    Originally posted by: QINGQINGQING


    Thank all you guys
    #CPLEXOptimizers
    #DecisionOptimization