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
------------------------------
Original Message:
Sent: Thu June 10, 2021 02:50 PM
From: Luc Charest
Subject: Trying to reproduce a relaxationIterator example
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