solver

Equation Solvers for C++

I need to solve a few mathematical equations in my application. Here's a typical example of such an equation: a + b * c - d / e = a Additional rules: b % 10 = 0 b >= 0 b <= 100 Each number must be integer ... I would like to get the possible solution sets for a, b, c, d and e. Are there any libraries out there, either open source...

Fast FEM Solvers

What are the fast solvers for FEM equations? I would prefer open source implementation, but if there is a commercial implementation, then I won't mind paying for it. ...

Does anyone know a better alternative to MS Excel's Solver?

My company has to crunch a lot of data and part of the process involves running the solver and plotting a graph through resulting data points. Obviously there is a lot of copy and paste involved and the whole process is shaky, error prone and all round cluster-fudge. I was wondering if there was an alternative to the solver that can be u...

Efficient way of Solving Cryptarithms

Hi i came across this puzzle which is a subset of famous kind of word and numbers based puzzles called Cryptarithms. Say you have an expression as S E N D + M O R E = M O N E Y Now the interesting part there is that, each alphabet is representing a unique digit from 0-9. I wanted to write a generalized solver, but i ended up writing ...

QP solver for Java

I'm looking for a good easy to use Java based Quadratic Programming (QP) solver. Googling around I came across ojAlgo (http://ojalgo.org). However, I was wondering if there are any other/better alternatives. ...

Rearrange equations for solver

Hi guys, I am looking for a generic python way to manipulate text into solvable equations. For example: there may be some constants to initialize e1,e2=0.58,0.62 ma1,ma2=0.85,1.15 mw=0.8 Cpa,Cpw=1.023,4.193 dba,dbr=0.0,25.0 and a set of equations (written here for readability rather than the solver) Q=e1*ma1*Cpa*(tw1-dba) Q=ma1*Cp...

Opinions on Microsoft Solver Foundation?

I looking into options for a linear and non-linear programming (optimization) framework. Requirements are: Support linear and non-linear programming problems with approx. 100-1000 variables and up to about 1000 constraints (I gather that is pretty simple). The non-linear problems have constraints involving multiplication or division ...

Game solving algorithm (Buttonia, lights-out variant)

I am trying to create a solvability function for a game algorithm. Basically a function that returns true or false for a given game it if is solvable or not. The game is Buttonia.com (which does not implement the algorithm as yet), a type of lights-out game. Basically You have a grid of buttons, each of which, when pressed, will change ...

Calling Excel Solver VBA from another worksheet

After creating a new workbook, I am trying to solve a newly created worksheet of this workbook in VBA. Despite of activating the new worksheet, Solver attempts to solve the worksheet, where the macro lies. Any suggestions, on how to make sure Solver solves the right worksheet? I use this code to activate the worksheet. ws.Activate ...

Excel Solver not obeying binary constraint

I created a model in Excel to use in conjunction with Solver. It mostly works. The only problem is that Solver is not really treating the cells constrained as binary properly. When it's done finding a solution, some of the numbers are actually 0.9999996, 1.0000000003, 0.0000017, and so on. I am using Excel 2004 on Mac OS X. Here's what ...

How to solve a system of inequalities?

I've reduced my problem (table layout algorithm) to the following problem: Imagine I have N variables X1, X2, ..., XN. I also have some (undetermined) number of inequalities, like: X1 >= 2 x2 + X3 >= 13 etc. Each inequalities is a sum of one or more variables, and it is always compared to a constant by using the >= operator. I cannot ...

Running Excel Solver Macro in Coldfusion

Hi guys, I'm trying to run the excel solver in Coldfusion. However i'm running into issues like, the page hangs as if loading forever, similar to this. Is it possible to run excel solver thru Coldfusion? If not, are there other alternatives for Coldfusion? Thanks in advance. ...

Equations Solver function in Matlab. How do I handle [eqns,vars] = getEqns(varargin{:}) errors?

I am using Matlab and am using its solve function. I run this code and I keep getting this error [eqns,vars] = getEqns(varargin{:}) I realized I had some parens issues and fixed those but it still does work any ideas? Asp = 3.90; Arg = 12.48; Lys = 10.54; His = 6.04; Glu = 7.70; Gly = 7.50; Val = 7.44; Pro = 8.36; Ser = 6.93; ...

Coin-OR -- Extracting Gomory Cuts from Cgl (Coin-Or)

Hey, I'm trying to extract Cgl Gomory cuts out of the Cgl (Cut Generation Library) of Coin-Or The following is the code I'm using to extract the cuts - OsiCuts cutlist; CglGomory * gomory = new CglGomory(); gomory->setLimit(100); gomory->generateCuts(*sym, cutlist) ; where sym is an instance of OsiSymSolverInterface (the OsiSolverInt...

Structure/algorithm for solving game with overlapping cards

Consider a card game along the lines of Tower Solitaire, Tripeaks, or Fairway Solitaire: the table consists of some number of cards which are immediately available, each of which might be covering other cards underneath it (blocking them from being played). You have one "foundation" card, and you can remove a card from the table if it's ...

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 + 0.55 Q2 ; Q1 >= 5; Q1 <= 10 ; Q2 >= 5; Q2 <= 10; Q1 + Q2 <= 10; sec Q1,Q2 ; int Q1,Q2...

How to delete all constraints from solver in Excel?

I can use SolverDelete to delete a constraint if I know exactly what it looks like. How can I delete all constraints with VBA without knowing them? ...

How to implement Excel Solver functionality in C#?

Hi, I have an application in C#, I need to do some optimization calculations, like Excel Solver Add-in does, one option is certainly to write my own solver implementation, but I'm kind of short of time, so I'm looking into libraries that already exist that can help me with this. I've been trying the Microsoft Solver Foundation, which s...

Java Anagram Solver

I can work out how to create anagrams of a string but I don't know how I can compare them to a dictionary of real words to check if the anagram is a real word. Is there a class in the Java API that contains the entire English dictionary? ...

How to choose an integer linear programming solver ?

Hi all, I am newbie for integer linear programming. I plan to use a integer linear programming solver to solve my combinatorial optimization problem. I am more familiar with C++/object oriented programming on an IDE. Now I am using NetBeans with Cygwin to write my applications most of time. May I ask if there is an easy use ILP solver f...