ms-solver-foundation

How to evaluate the pros and cons when changing language

Hi, I am working in a company that develops computing kernels. Their design is simple : it's a library in c++ which only has one function available to compute results out of available data. There are essentially four steps in every one of these kernels : retrieve xml content (format has been defined in an XSD file) and store into ob...

Microsoft Solver Fundation tutorial ?

Hi all, I develop an application (in C# Winform) that try to solve calendar issues and time slots assignments. This should be done by contraint programming. Do you know some good url and tutorials to get start with Microsoft Solver Fundation? ...

How to model simple scheduling problem using MS Solver Foundation?

I have the following simple problem that I'd like to use to experiment with MS Solver Foundation: I have a schedule where I need to have 2 workers per day for 30 days. I need to honor the following constraints: No people should work two days in a row. Unless a special exception is applied, people should only work once per week. Some ...

Microsoft Solver Foundation Services declarative syntax

I have the following simple problem that I'd like to use to experiment with [MS Solver Foundation][1]: I have 10 slots that I need to fill with integers in the range 1 to 5. I want to enforce only two constraints: slot[n] != slot[n + 1] the sum of all slots should be more than 20 I could simply create the following decisions: Deci...

Microsoft Solver Foundation for semi-integer

Is it possible to use the MSF api to specify a variable as semi-integer (V = 0, or a <= V <= b)? The following is an example in LP_Solve that uses the "sec" and "int" keywords to indicate the variables are semi-continuous and integer. max: 0.5 Q1 + 0.55 Q2 ; Q1 >= 5; Q1 <= 10 ; Q2 >= 5; Q2 <= 10; Q1 + Q2 <= 10; sec Q1,Q2 ; int Q1,Q2...

Microsoft Solver Foundation constraint

Hello, I'm trying to use Microsoft Solver Foundation 2 to solve a fairly complicated situation, however I'm stuck with an UnsupportedModelException even when I dumb down the model as much as possible. Does anyone have an idea of what I'm doing wrong? Following is the least example required to reproduce the problematic behavior. var ctx ...

Simple time constraint problem using C# and Microsoft Solver Foundation?

I am trying to figure out the following simple problem in order to get acquainted with Solver Foundation. I have 8 hours, 1 room and 3 teachers. Each teacher must hold 2 lectures 1 hour long each and each teacher must not hold 2 consecutive lectures. I am having trouble finding out how to model something that contains time in it. How ca...