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:

    Foreach[{i,I},y<=x[i]],
    Or[Foreach[{i,I},y==x[i]]]

No doubt this will be fixed in the next release.

2 comments:

  1. Hey Erwin - you are right, this will be fixed in the next Solver Foundation release. They were left out unintentionally (in fact the documentation exists on our MSDN site).

    Natahn

    ReplyDelete