Decision Optimization

Expand all | Collapse all

Trying to reproduce a relaxationIterator example

  • 1.  Trying to reproduce a relaxationIterator example

    Posted 2 days ago

    Hello, 

       I'm trying to reproduce in F# the main part of the simple OPL example from this page :

    Relaxations

       It seems I am able to attach the constraints, however, I'm not able to find the proper method to attach a variable to the relaxationIterator using the .NET API :

    OplRelaxationIterator Members

       Is this operation not supported by the .NET API or is there a way somehow to convert a variable to an IConstraint using the .NET API?

       I guess a workaround would be to transform the bounds of the variables into constraints?

    Thanks!



    ------------------------------
    Luc Charest
    ------------------------------


  • 2.  RE: Trying to reproduce a relaxationIterator example

    Posted yesterday
    Right now, the opl relaxation iterator is only meant for relaxing constraints. This is not a .NET limitation but a limitation of the object itself.
    I would also go give a try for transforming variables bounds into constraints.

    ------------------------------
    Vincent Beraudier
    ------------------------------