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
1
vote
1 answer

Is there a sample using Nelder-Mead solver in Microsoft Solver Foundation?

I have been checking the examples that come with Microsoft Solver Foundation for an example using the Neler-Mead solver. The samples website says there is one, but when I open the NLP sample written in C#, all I see is the Compact Quasi-Newton…
FistOfFury
  • 6,735
  • 7
  • 49
  • 57
1
vote
1 answer

Binding a 2D array of doubles to a parameter in MS Solver Foundation

How to bind a 2D array to a parameter in Solver Foundation? Have tried defining the array as double(,); as double()() and as a list of tuples(double, i, j). I have also tried to implement the extension methods to SetBinding, suggested here;…
Yugmorf
  • 320
  • 1
  • 6
  • 20
1
vote
1 answer

How to use If operator in MS Solver Foundation?

What's wrong with this code?: SolverContext sc = SolverContext.GetContext(); Model m = sc.CreateModel(); m.AddDecision(new Decision(Domain.IntegerNonnegative, "a")); m.AddDecision(new Decision(Domain.IntegerNonnegative,…
Juan
  • 15,274
  • 23
  • 105
  • 187
1
vote
1 answer

Finding optimal point on 2D area using Solver

It's my first time with Solver Foundation, and I don't understand how to specify goal function. Problem I'm trying to solve using Solver is finding optimal point on 2D surface basing on goal function. As input data, I have 3 point on this surface…
Soul Reaver
  • 2,012
  • 3
  • 37
  • 52
1
vote
1 answer

On working with ranges of real numbers in Microsoft Solver Foundation

A solver project I am working on (C#) requires to test if there is a solution, regardless of quality, or not to a problem where some of the inputs fall within some pre-defined range of real numbers. I put together the following example that contains…
0
votes
1 answer

Simple Minimization, but pass into method

I'm trying to use Solver Foundation to solve a simple one variable minimization problem (C#), but I'm new to this library and am finding an easy example hard to find... What I'm trying to do minimize using variable x: MIN[const - method(x)], where…
keynesiancross
  • 3,441
  • 15
  • 47
  • 87
0
votes
0 answers

Microsoft Solver Foundation - Register a constraint as string on a root model referencing a submodel variable

i have this code to solve a simple problem with Msf var solver = SolverContext.GetContext(); var model = solver.CreateModel(); //define two simple variables var decisionX = new Decision(Domain.Set(0,1,2,3,4,8), "X" ); var decisionY = new…
0
votes
0 answers

Automating a custom simplex LP Excel Solver in C# code

I am trying to solve a Linear problem programmatically with C# using Microsoft Solver foundation library. Currently our business is solving the problem manually using the Excel Solver Add-in. Now, I am trying to automate the same thing in C#. I am…
0
votes
3 answers

Automatic parameter tuning

I've got a an audio processing app that takes an input audio file, processes it, and spits out a modified output audio file. This audio processing app has 10-15 parameters that affect how it processes the audio, and thus affects the content of the…
0
votes
0 answers

Why is Microsoft Solver Foundation not returning a solution?

I'm trying to solve my linear program with Microsoft Solver Foundation, but it doesn't return a solution. It doesn't give a clear message to what is wrong, so I'm not sure what is going on. I have checked the constraints and I believe they are coded…
Alex Janse
  • 43
  • 6
0
votes
1 answer

How to run Microsoft Solver Foundation in parallel tasks

I would like to run Microsoft Solver Foundation in parallel tasks. I tried with the solution below and it throws an exception "ArgumentException: exePath must be specified when not running inside a stand alone exe.". It runs fine one after another…
Nhân Nguyễn
  • 105
  • 1
  • 4
  • 9
0
votes
1 answer

Solve non-linear equation with MS Solver Foundation C#

Context I would like to solve the following equation using C# algorithms, and do not want to reinvent the wheel. I examined Math.NET, and quickly turned out it only supports solving liner matrix equations with numeric methods. Searching toward I…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
0
votes
1 answer

MissingMethodException using MS Solver Foundation v2.1

I am new to MS Solver Foundation and am trying to run the CompactQuasiNewtonSolver from C# but I am getting an error. The only code I have inside my main method is this: CompactQuasiNewtonSolver solver = new CompactQuasiNewtonSolver(1); but I get…
0
votes
0 answers

Microsoft Foundation Solver : Job Shop Scheduling issue

I am just starting using solvers, and I still have pretty much no idea what I doing but: Lets say I have a JOB Shop Schedulling problem of sorts, and I have followed a tutorial and got a somewhat working solution, right now I am trying to expand on…
0
votes
0 answers

Why noone else can run my program with MS SolverFoundation namespace in it?

I have created a program that uses Microsoft Solver Foundation, so contains a using Microsoft.SolverFoundation.Services line around the start. This required a .Net 4 Framework to be used as target framework. For me, the program runs perfect, but…
iSpain17
  • 2,502
  • 3
  • 17
  • 26