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
0 answers

MS Solver - How do I use an integer decision in a boolean expression?

I'm using MS Solver to try to solve a bin packing problem, but I can't figure out how to use my Decisions in a Boolean expression to create a Term. Here's an outline of my problem: I'm trying to fit items into bins, minimizing the number of bins. …
1
vote
2 answers

How to enforce a Square number constraint in Microsoft Solver foundation OML?

I want to limit the result to only square numbers ( I am using excel plugin). How do I enforce this? As in, Minimize Goal X subject to a condition that X is a square number.
Benny
  • 639
  • 3
  • 11
  • 25
1
vote
2 answers

Reproducing Excel Solver GRG Nonlinear Optimization in Visual Basic .NET

I am trying to re-produce the following Excel Solver GRG Nonlinear optimization using the Microsoft Solver Foundation in VB.NET (numbers are simplified for the sake of this example): Objective: Total Gas Rate = 100000 Variable: Well 1 Oil…
1
vote
2 answers

Microsoft Solver Foundation constraint

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…
em70
  • 6,088
  • 6
  • 48
  • 80
1
vote
1 answer

Solver foundation, strange behaviour

using System; using System.Collections.Generic; using System.Linq; using Microsoft.SolverFoundation.Services; namespace Test { class Program { static void Main(string[] args) { var context=…
ehremo
  • 387
  • 2
  • 8
1
vote
0 answers

Using an objective function in Microsoft Solver Foundation Services (SFS)

With the lower-level Solver programming (MS Solver Foundation Solvers) it is possible to assign an objective function to an optimization model, as shown below from the Rosenbrock sample: solver.FunctionEvaluator =…
selmar
  • 181
  • 3
  • 14
1
vote
1 answer

Microsoft Solver Foundation - how to use function as constraint?

I'm trying to find a solution to a problem using Microsoft Solver Foundation in C# and I'm having trouble setting up all the constraints I need. My basic model is I have a list of bays and I need to load each bay so that the total of all the bays is…
1
vote
1 answer

Domain.IntegerRange from MS Solver Foundation using F#

I've been playing with MS Solver using F# and I need to define domain as a range of ints. I learnt there's a function: Domain.IntegerRange which takes two parameters of Rational type. In C# there's no problem using ints instead of…
LA.27
  • 1,888
  • 19
  • 35
1
vote
1 answer

Adding a constraint in Microsoft Solver using F#

I'm implementing a solution for Graph Coloring problem using Microsoft Solver Foundation and F#. Recently I've found this piece of…
1
vote
2 answers

Microsoft Solver Foundation: Enterprise edition

Where can I download the enterprise edition of Microsoft Solver Foundation? I am able to get the express edition online, but it has a limit on the number of variables and constraints. I want to solve large LPs using the enterprise edition.
user2464953
  • 131
  • 3
  • 12
1
vote
1 answer

Microsoft Solver Foundation UnsolvableModelException

I am trying to solve an LP(a network problem) using Microsoft Solver Foundation. My code is in C#. I get the following error: UnsolvableModelException was unhandled. The solver(s) threw an exception while solving the model. But when I solve the same…
user2464953
  • 131
  • 3
  • 12
1
vote
1 answer

Microsoft Solver Foundation: Add decision variables in a loop to a constraint

I'm trying to create an optimization model using Microsoft Solver Foundation with VB.NET in Visual Studio 2010. Basically I have a list of 3 types of employees that I need to hire (bartenders, waiters, and hostesses) each with different wages and…
JStew
  • 437
  • 3
  • 7
  • 19
1
vote
2 answers

Solver Foundation in C# has a bigger error than Excel's solver

I'm starting to use Solver Foundation in a WPF/C# app, which should replace an Excel sheet that solves a linear problem, something simple like this: Mix A: (20% A + 70% B + 10% C) Mix B: (35% A + 65% C) Mix C: (10% A + 80% B + 10% D) How much do I…
1
vote
0 answers

Microsoft Solver Foundation - Never returns value

I need to port an excel spreadsheet that uses the solver plugin to an ASP.NET c# site, I'm using the Solver Foundation 3.1 to no avail. The equation is iterative, and two conditions need to be met in order to determine the two decision values. The…
tutts
  • 2,373
  • 2
  • 20
  • 24
1
vote
2 answers

solving the Chapman-Richards equation

I need to find a way to solve the Chapman-Richards with 3 parameters. The equation is F=a(1-EXP(-bt)) power c It is a nonlinear problem. The goal is to minimize the error and the constraints are that the 3 variables must be >= 0.0001. Our current…