Questions tagged [ms-solver-foundation]

Microsoft Solver Foundation (MSF) is a framework for modeling optimization problems. It provides a .NET API and runtime (Solver Foudation Services) and uses a declarative modeling language (OML). MSF contains built-in solvers and interfaces with external solvers.

Microsoft Solver Foundation (MSF) is a framework for modeling optimization problems. It provides a .NET API and runtime (Solver Foundation Services) including bindings for C# and F# and a declarative modeling language (OML). MSF includes built-in solvers and can interface with many popular third-party solvers. MSF also includes interfaces to Excel and Sharepoint.

101 questions
3
votes
1 answer

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…
Ivan Zlatanov
  • 5,146
  • 3
  • 29
  • 45
3
votes
1 answer

Cancel backgroundworker operation

I'm using Microsoft Solver Foundation in my recent WinForms project to solve a scheduling problem. My scheduling method is something like this: public class Scheduler { public void Schedule() { InitializeParameters(); …
Masoud
  • 8,020
  • 12
  • 62
  • 123
3
votes
2 answers

How to evaluate the pros and cons when changing language

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…
Benoît
  • 16,798
  • 8
  • 46
  • 66
3
votes
1 answer

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 +…
freddy smith
  • 3,347
  • 5
  • 24
  • 28
3
votes
1 answer

What solver should I use to replace the minFunc when porting MATLAB Sparse Filtering to F#

I have the following Sparse Filtering MATLAB code that I would like to port to F#. I am aware of F# Type Provider for MATLAB but can't use it here because it would create a dependency on MATLAB (I can use it for testing) function [optW] =…
Andre P.
  • 613
  • 1
  • 7
  • 21
3
votes
3 answers

LpSolve Plugin For Microsoft Solver Foundation not working on 64bit OS

I can't make LPSolvePlugIn for MSF work on a 64 bit OS. (inside a c# dll hosted called from asp mvc 3 application) Is there a specific version for this? Should I build my application targeting x86? Should I rebuild the solver plugin from source…
KinSlayerUY
  • 1,903
  • 17
  • 22
3
votes
1 answer

Converting a string to a constraint "Term" in Solver Foundation

I'm trying to use Solver Foundation to create an application which will be able to solve Linear Programming problems. Long story short I'm stuck when trying to convert a string expression to a Microsoft.SolverFoundation.Services.Term. What I want to…
petestar
  • 57
  • 8
3
votes
0 answers

Is there a directive in Microsoft Solver Foundation Services to match Solver in Excel?

I have an Excel workbook that is using the Solver add-in to maximize a set of equations with a square root in it (e.g. it's non-linear). I'm attempting to re-implement this in C# using Microsoft Solver Foundation. I've tried a few different…
2
votes
0 answers

Unit testing and Solver Foundation

I'm currently working on a large scale business application and I'm going to use Solver Foundation with Solver Foundation Services to solve a huge portfolio optimization problem with user defined constraints and input. The problem will usually be…
2
votes
1 answer

Team Building Optimization Using Microsoft Solver Foundation 3.0

I'm working on a student project team building application. I'm familiar with optimization but haven't used Microsoft Solver Foundation before. I have my constraints worked out but am having trouble identifying my goals with the Solver syntax.…
Greg
  • 8,574
  • 21
  • 67
  • 109
2
votes
1 answer

Cannot build Xamarin.iOS with Microsoft Solver Foundation

I've added Microsoft Solver Foundation via Nuget to a Xamarin iOS project but it fails to build with this message: Build FAILED. MTOUCH : warning MT5215: References to 'gdiplus' might require additional -framework=XXX or -lXXX instructions to the…
Pætur Magnussen
  • 901
  • 1
  • 11
  • 24
2
votes
1 answer

Microsoft Solver Foundation Throws ArgumentNullException When Adding a Constraint

I'm trying to create a schedule for a call centre where I am trying to maximize staff on high call periods and minimize on low periods. For simplicity, it would look something like: I have the following code: var startTimes =…
Bill Nielsen
  • 866
  • 2
  • 7
  • 18
2
votes
2 answers

Decision matrix in Microsoft Solver Foundation

I am trying to use the Microsoft Solver Foundation to optimize a problem with a matrix of binary decision variables. Here is the format of my decision matrix: X[i,j] = { { x11, x12, ..., x1n }, { x21, x22, ..., x2n }, ... { xm1,…
2
votes
1 answer

Adding constraints for a known solution causes out of bounds exception

I have a linear optimization goal to Maximize EE+FF, where EE and FF each consist of some C and D. With code I've written, I can get solver to find: EE_quantity: 0, FF_quantity: 7 ...but I know there to be another solution: EE_quantity: 1,…
graph
  • 367
  • 1
  • 6
  • 18
2
votes
0 answers

Microsoft Solver Foundation doesn't solve what is solved by Excel solver

I have a non-linear optimization problem with constraints. I solved it with Excel Solver (GRG) but when I tried to translate it to C# with Microsoft Solver Foundation it gets solution.Quality = SolverQuality.Unknown. The problem is this: I have some…
s-s
  • 382
  • 2
  • 12