New answers tagged

6 votes
Accepted

Using Compile on Gradient within FindMinimum efficiently

...
user avatar
  • 1,651
0 votes
Accepted

Real valued solution

Try ...
user avatar
1 vote

Approximate strictly positive solution to a linear set of equations?

THIS IS AN EXTENDED COMMENT RATHER THAN AN ANSWER. It is inefficient to use Table to generate random numbers. ...
user avatar
  • 120k
10 votes

Nonnegative Least Squares Algorithm (NNLS)

We can compare 6 algorithms based on FindMinimum,NMinimize, ConvexOptimization, ...
user avatar
  • 34.1k
3 votes

Solution to a linear equation with minimum rank

Your transposed equation looks like Transpose[M].Transpose[X]==Transpose[A] LeastSquares finds the minimal solution ...
user avatar
2 votes

Find min value of a complex Root function

In response to the OP's comment: ...
user avatar
  • 216k
5 votes

Find min value of a complex Root function

...
user avatar
  • 32.5k
7 votes

Optimize cost when ordering wood boards (cutting stock problem)

(Solution to original problem further below) MarcoB indicated useful keywords in his comment, in particular this problem is a subclass of the cutting stock problem. For the reference, two links that I ...
user avatar
  • 13.8k
1 vote
Accepted

How to take the derivative with respect to a function with more than one variable?

...
user avatar
  • 12.4k
6 votes

Find the maximum of a given function

First numerical analysis give a strong hint, that maximum does not depend on m. Test it with different k and m. Leave it to you to proof it exactly. ...
user avatar
  • 15.7k
1 vote

How to take the derivative with respect to a function with more than one variable?

I understand that you want to calculate dp/dq. That is the ratio of the change of p to the change of q if x is changed an infinite small amount. To make it simpler I insert the constants and define: <...
user avatar
  • 24.8k
5 votes

How to get a rational solution of the linear system efficiently?

Get the same result about four times faster with NMinimize and rationalization. (Using the format for variables, @BobHanlon proposed.) ...
user avatar
  • 15.7k

Top 50 recent answers are included