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
0
votes
1 answer

Formulate algorithm to evenly distribute delivery quantities using linear programming

I am trying to solve a supply chain problem using optimisation and linear programming. I am not a optimisation expert and I am having trouble formulating a solution using variables, constraints and goals. It is only a proof of concept, and I have…
0
votes
0 answers

Improve optimization running time. (using c# SolverFoundation)

I am having some trouble when I run the optimization code below in C#. The program ran well with the first three constraints. But once I added the fourth, it took the code a much longer time to run. To increase performance here are some of my…
Jiddy
  • 1
0
votes
0 answers

Changing the left part of an equation

I'm currently solving a linear equation system with MS-Solver-Foundation. I were able to solve the problem with it and I'm now trying to make it more dynamic (so that I don't have to change the code each time the problem changes). I got multiple…
hanss314
  • 1
  • 2
0
votes
1 answer

C# scheduling tasks with MS Solver Framework

I want to schedule tasks with the Microsoft Solver Framework. For now i have the simple goal to just order the tasks in a queue so that i get a minimal project time. (later i want to have more than one queue). I tried to approach this with the…
Yellown
  • 426
  • 2
  • 6
  • 16
0
votes
1 answer

Microsoft Solver Foundation and F#

I'm trying to convert this MS Solver Foundation example from C# to F#, but constantly running into problems with type conversions, in particular in section 5, where C# accepts implicit conversion from double to Rational, something F# does not accept…
Loco Barocco
  • 121
  • 7
0
votes
1 answer

force MS Solver to find a solution

How can I force MS solver to find the a solution for a model when not all constraints are satisfied like it does in Excel? I've found a method GetInfeasibilitySet(apparently it returns the constraints that are not satisfied in the model) which is…
0
votes
1 answer

Force C# SolverFoundation SimplexSolver to find an int solution

It is stated here that SimplexSolver "Defines a branch-and-bound search for optimizing mixed integer problems." which should mean that it finds an integer solution for a given task but it finds a precise solution with a double values. Is there a…
WORMrus
  • 159
  • 1
  • 10
0
votes
2 answers

how to use decision in exponential for solver using c#

In my application i'm using solver.In this i created a Decision function that is working fine. But i want to use Decision function in Math.Exp function. For better understanding refer source code below, using…
shivcena
  • 2,023
  • 8
  • 24
  • 50
0
votes
1 answer

C# Simple Constrained Weighted Average Algorithm with/without Solver

I'm at a loss as to why I can't get this seemingly simple problem solved using Microsoft Solver Foundation. All I need is to modify the weights (numbers) of certain observations to ensure that no 1 observation's weight AS A PERCENTAGE exceeds 25%.…
Mark Z.
  • 2,127
  • 16
  • 33
0
votes
1 answer

How many Terms/Variables/Constraints/Non-Zeroes I defined in my Solver Foundation model?

I'm using Microsoft Solver Foundation Express eddition in my program, Express version is limited in model size according this link. Is there any way to find how many: Terms Variables Constraints Non-Zeros I defined in my model, using code?
Masoud
  • 8,020
  • 12
  • 62
  • 123
0
votes
1 answer

Microsoft Solver Foundation could not solve my model in some cases

I'm working on a production planning project, so I want to find an order production start time in some machines(A, B). For simplification purpose, I suppose that I have 2 machines(machine A and machine B) I have following constraints: Each machine…
Masoud
  • 8,020
  • 12
  • 62
  • 123
0
votes
1 answer

Reporting shadow prices from SimplexSolver

I'm using the SimplexSolver class directly to solve a linear program, with AddRow, AddVariable and SetCoefficient. This works quite well. We need to come up with shadow prices now, and I don't see any way to access either the shadow prices or the…
jnm2
  • 7,960
  • 5
  • 61
  • 99
0
votes
0 answers

Adding quantity-per-item constraint to knapsack algorithm

I am working knapsack problem. With online solution available i have done this so far private void main() { var random = new Random(); var products = new List(); products.Add(new Product("Coil1", 0,…
Olivarsham
  • 1,701
  • 5
  • 25
  • 51
0
votes
1 answer

Sheets().Select/Solver VBA not working

My workbook has three sheets, one of which's names is "Data". Why on earth does the .select method not work? The code runs fine, without giving errors, but never selects/goes to the "Data" sheet... Private Sub CommandButton1_Click() Dim…
Mierzen
  • 566
  • 1
  • 5
  • 25
0
votes
1 answer

MS Solver Foundation CSP Error - Inputs have different Symbol Domain

I am trying to use Microsoft Solver Foundation to solve our family Christmas draw (similar to a "secret santa" or "kris kringle"). I have some complex constraints (e.g can't buy for your siblings), which I have already used to prune the domains for…
Spongeboy
  • 2,232
  • 3
  • 28
  • 37