Questions tagged [solver]

A solver is a generic term indicating a piece of mathematical software, possibly in the form of a stand-alone computer program or as a software library, that 'solves' a mathematical problem.

A solver is a generic term indicating a piece of mathematical software, possibly in the form of a stand-alone computer program or as a software library, that 'solves' a mathematical problem. A solver takes problem descriptions in some sort of generic form and calculate their solution. In a solver, the emphasis is on creating a program or library that can easily be applied to other problems of similar type.

For more information about the topic, please visit http://en.wikipedia.org/wiki/Solver .

1397 questions
-2
votes
1 answer

Use solver in loop (Use VBA or other available method)

I am trying to use solver to find the root for 182 cells, each cell is depend only on one another variable, the output cell is from O2 to O183, the variable cell is from P2 to P183. I am trying to change the variable cells to have the output cell…
T.Joe
  • 51
  • 2
  • 5
-2
votes
2 answers

Maze Solving with recursion C++

I am trying to read a maze (from input.txt) and solve it. This code doesn't work as it should. What is wrong? void Maze::create(vector >&info) { for (int i = 1; (unsigned)i < info.size(); i++) { for (int j = 0; (unsigned)j <…
Shi Yi Lee
  • 39
  • 7
-2
votes
1 answer

Verifying properties using Solver

I have a system of equations of the form: x1 * x2 *.... * xn = a, where * can either be + or - . I am building some other equation of the same form, and I want to verify if they are satisfied by the first system. My question is: Is there a solver…
Mr. D
  • 519
  • 1
  • 5
  • 18
-2
votes
1 answer

Runtime Error While Using Excel VBA

I'm attempting to use solver to fit a regression line on excel. But I am encountering difficulty as the message "Sub or function not defined" prompts up when I try to call the Macro. My ultimate goal is to create a loop for the solver down a…
-2
votes
1 answer

Sudoku Checker Java

I have a question about a problem I'm having with a code i am writing. I need to create a Sudoku board checker. The goal is to extend the Sudoku class (to make the CheckableSudoku class) by using the the 5 specific methods I have to use…
Alex
  • 31
  • 5
-3
votes
1 answer

Sudoko Solver Backtracking Algorithm Not Working

I am fairly new to programming and I have recently started working on a sudoko solver, everything works fine aside from the solving algorithm itself, I used a bit of help from the internet, but because I wrote the methods myself, I can't find an…
Ryanjewbo
  • 23
  • 2
-3
votes
1 answer

How to solve a maze in Python?

I am trying to write a code that solves a basic maze made up of a list of lists with '#' symbolizing walls, '.' are free spaces, S is the start and E is the end. My algorithm consists of first checking to see if the space to the right is free, if…
-3
votes
1 answer

Which solver is suitable for bilevel problems, CPLEX or Gurobi?

I am trying to model a bi-level problem using a solver. I wonder about CPLEX and Gurobi: which one is the best choice? Based on my research, there is no important difference between these two, or am I wrong?
Aprilis
  • 27
  • 7
-3
votes
1 answer

Specify solver in CVXR

I am new to the package CVXR. I am using it to do the convex optimization within each iteration of EM algorithms. Everything is fine at first but after 38 iterations, I have an error: Error in valuesById(object, results_dict, sym_data, solver) :…
TDo
  • 495
  • 1
  • 7
  • 18
-3
votes
3 answers

How do I solve this exponential equation on Excel Solver?

100e^0.25*y = 97.5 Solving for y Using Excel Solver I tried using empty column entry for y in 'By changing cells' and Set objective function as LHS of above equation (empty column entry in equation included) equal to value of 97.5 in solver. It…
user5498276
  • 15
  • 1
  • 2
-3
votes
2 answers

Is there a Solve method in Java for (eq. inside)?

If I want to solve the variable (p) from the following equation, where everything else is known : Is there a method out there in Java that would let me do this? I can do it with my calculator, and I am sure there is something out there for Python -…
Edv Beq
  • 1,010
  • 2
  • 12
  • 30
-3
votes
1 answer

I am trying to find a complete vba algorithm for the solver addin in excel

Just to reconfirm, I do not need the recorded macro of the solver add-in, however I need the complete vba algorithm. I would be extremely grateful If anyone have any such code (or a link to the code) and share it. Thanks
Shashank
  • 33
  • 1
  • 2
  • 10
-3
votes
1 answer

"Lights Out" Validity Checker

I've been trying to code a game of "Lights Out" and have coded the game and its mechanics. My only issue is with the problem that every puzzle is not solvable. I have attempted to code a method to check the puzzle it creates for solvability, but…
-4
votes
1 answer

Manufacturer cost optimization Python solver PuLP scipy

I have the following optimization problem: I want to minimize the cost of buying products from various suppliers. Prices of the products vary depending on supplier. Additionally, each supplier has their shipping cost. Shipping cost can be discounted…
Malcolm
  • 11
  • 2
-4
votes
1 answer

How to get sorted ExprCondPair's in a Piecewise function that was obtained from solving another Piecewise function?

Let's consider the following example: import sympy as sym x, y = sym.symbols(['x', 'y']) cdf = sym.Piecewise((0, y < 0), (y, y < 1), (2*y - 1, y <= 2), (3, True)) eq = sym.Eq(x,…
Georgy
  • 6,348
  • 7
  • 46
  • 58
1 2 3
93
94