Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Constraint number / name

    Posted 04/22/08 06:40 PM

    Originally posted by: SystemAdmin


    [e129377 said:]

    Hello,

    I need to know the name of the constraint which I add to the model last. I am calling Cplex using .NET C#.

    Do you know a way to do this?

    Thanks.

    Degirmenci
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Constraint number / name

    Posted 05/23/08 07:52 PM

    Originally posted by: SystemAdmin


    [oussedik said:]

    Hi,

    I don't understand why you need to retrieve the last added constraint, probably within an iterative resolution strategy.

    You can declare a separate array (separate from the model) in which the constraints are ordered if you need to keep trace of that or declare a constraint object save the last added constraint.

    Sofiane
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Constraint number / name

    Posted 05/26/08 02:08 PM

    Originally posted by: SystemAdmin


    [alain.chabrier said:]

    Hi,

    what do you mean by name ? the name of the Concert modeling object or the matrix row ?

    Before adding the constraint, you may name it using setname.
    then the matrix row should have the same name.

    You can find it easily in the LP file if this is what you try to do.

    Alain
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Constraint number / name

    Posted 06/03/08 06:32 PM

    Originally posted by: SystemAdmin


    [e129377 said:]

    Hi,

    I have solved the problem by adding constraints in an Array list in a structured order.

    Thanks.

    Guvenc
    #CPLEXOptimizers
    #DecisionOptimization