Decision Optimization

 View Only
Expand all | Collapse all

Trying to reproduce a relaxationIterator example

  • 1.  Trying to reproduce a relaxationIterator example

    Posted Thu June 10, 2021 02:51 PM

    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
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Trying to reproduce a relaxationIterator example

    Posted Fri June 11, 2021 03:09 AM
    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
    ------------------------------