Monday, August 9, 2010

Solver Foundation CSP: Min/Max

>I want to use Min and Max operators to find the Minimum and maximum value for an array. This array has
>decision variables involved. If Solver Foundation does not support Min and Max operators, do you have any
>other idea to finish such operations?

The current version of Microsoft Solver Foundation is missing Min and Max as in

y == Min[Foreach[{i,I},x[i]]]

One simple alternative is:


No doubt this will be fixed in the next release.