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

How can I define a constraint that prevents a resource to be allocated to 2 tasks that overlap?

How can I define a constraint that prevents a resource to be allocated to 2 tasks that overlap? I have defined 5 resources: R1,R2,...,R5 and 3 tasks: T1,T2,T3 that have their corresponding start and end date(s1, e1 represent the start and end date…
Nico A
  • 161
  • 1
  • 1
  • 6
0
votes
0 answers

microsoft solver foundation constraint logical erro

This is the formula that I want to add as a constraint to the Microsoft solver foundation. I am using the SumTermBuilder class in this code but solver gives me the wrong result and there is no compilation error for this code. Why am I getting the…
0
votes
0 answers

Solver Foundation and the .NET GAC

I have made an app using the microsoft solver foundation, and its great. But my problem is that my client haven't installed the microsoft solver foundation, so when the run the program they got this error: Could not load file or assembly…
0
votes
1 answer

Use ceiling function in solver foundation goal?

I'm trying to take the ceiling of one of my decision variables times 2.5, in my Solver goal function, but the Math.Ceiling() function can't be applied because the foobar variable isn't a double, it's a "term" variable. Is there another way I can…
economistdolly
  • 395
  • 4
  • 20
0
votes
1 answer

Math.Min for objective function

Given two decision variable d1,d2 that take in only number 0 and 1 if the objective function is the sum of them we can express it by Term t1=d1 + d2; model.AddGoal("goal", GoalKind.Maximize,t1); Now I wish to take the smaller of them, i.e. Term I…
william007
  • 17,375
  • 25
  • 118
  • 194
-1
votes
3 answers

How to evaluate a polynomial given as a string?

I have dozens of polynomial equations, some 2nd order, some 3rd, and others 4th. Each equation has different coefficients and constants, but none of them are overly complex since they all contain only one input variable. The input variable x will…
TychoBrahe
  • 477
  • 5
  • 19
-1
votes
1 answer

how to make excel solver give same output each time when there are multiple solutions

I have developed an excel macro one that runs a solver at the supplier site and another at the client. The constraint conditions are created on the fly based on user input. However for more than one solutions I am getting a different answer. What…
norbdum
  • 2,361
  • 4
  • 19
  • 23
-1
votes
1 answer

Using Microsoft Solver Foundation to solve a linear programming task requiring thousands of data points

Using Microsoft Solver Foundation,I am trying to solve a linear program of the form Ax <= b where A is a matrix containing thousands of data points. I know that I can new up a Model object and then use the AddConstraint method to add constraints…
Barka
  • 8,764
  • 15
  • 64
  • 91
-1
votes
1 answer

MS-Solver-Foundation: Add Attributes of Objects to model?

I am new to Optimization Programming. I want to write an Character Calculator for an RPG. Simplified Overview: An character has statPoints which can be assigned to HP, dmg and def. Every Point in one of these three decreases the statPoints by…
-1
votes
1 answer

Exception: Cannot implicitly convert type 'Microsoft.SolverFoundation.Services.Term' to 'bool'

I'm getting an exception "Cannot implicitly convert type 'Microsoft.SolverFoundation.Services.Term' to 'bool'" in the following code: double T1; Decision T4; var XX3 = T1 > (T4 - 0.001) ? T4 - 0.001 : T1; How it is possible to fix this…
-1
votes
1 answer

C# SolverFoundation find maximum combination of lengths

I have a list of brackets that I need to find a combination of them up to 4 brackets, that best fits a certain length. These are my brackets and for example I need to find out what combination of these will be the closest without going over to 120…
collinszac10
  • 198
  • 1
  • 1
  • 12
1 2 3 4 5 6
7