Graduate Optimization with integers as results

Click For Summary
SUMMARY

This discussion focuses on optimizing the retrieval of integer coefficients A, B, and C for the quadratic function y = Ax^2 + By + Cxy, given a dataset (X, Y). The current method of grid search is deemed inefficient, leading to the suggestion of using diophantine minimization techniques to find integer solutions that minimize an error metric. The conversation highlights the potential of combinatorial optimization and heuristic methods, such as relaxation, to achieve satisfactory results without exhaustive searches.

PREREQUISITES
  • Understanding of quadratic functions and their coefficients
  • Familiarity with diophantine equations and minimization problems
  • Knowledge of error metrics in data fitting
  • Experience with combinatorial optimization techniques
NEXT STEPS
  • Research diophantine minimization techniques for integer solutions
  • Explore heuristic methods like relaxation for optimization problems
  • Learn about error metrics used in data fitting, specifically integral error metrics
  • Investigate combinatorial optimization algorithms and their applications
USEFUL FOR

Data scientists, mathematicians, and engineers involved in data fitting and optimization problems, particularly those seeking integer solutions for quadratic functions.

maistral
Messages
235
Reaction score
17
Say for example I have a dataset (X, Y) which I need to fit to the function y = Ax^2 + By + Cxy.

How do I retrieve values of A, B, and C such that they can only be integers? As of now I'm doing grid search which is so taxing.
 
Physics news on Phys.org
What does "I have" mean? Do you have a data set you already know, it satisfies such an equation? Do you want the best fit, and if, what is your measure for "best"? Which domains are we talking about? E.g. if all data are some finite decimal numbers, then you could simply multiply with all denominators.
 
maistral said:
Say for example I have a dataset (X, Y) which I need to fit to the function y = Ax^2 + By + Cxy.

How do I retrieve values of A, B, and C such that they can only be integers? As of now I'm doing grid search which is so taxing.
Could perhaps be an interesting (diophantine) minimization problem: Given a set of points ##\{x_i,y_i\}##,
find ##(A,B,C)\in\mathbb{Z}## such that some error metric such as:
$$
\int_a^b \big|g(x)-h(x)\big|dx
$$
is minimum where say ##g(x)## is a (relatively) good or good enough fit of the data and ##h(x)=Ax^2+Bx+C##? Seems to me there would always exist a minimum solution to such a problem. Wouldn't think such an exhaustive search of a reasonably-bounded integer 3D space (n,m,p) would take very long on a fast machine.
 
You've just discovered by combinatorial optimization is considered a "hard" problem. In general searching for an optimum integer solution takes a very long time as you have discovered.

If you can accept merely a pretty-good solution, there are heuristics you can apply. One of them is "relaxation". Solve the problem in real numbers, then round the resulting values to integers. This will in general not give an optimal solution but in many cases you can prove that it is within some bound relative of the optimum solution (for instance, no more than 30% worse).

These are general comments. I can't quite understand what your particular problem is. I don't know what it means to fit a dataset to a function. Do you just mean you have a bunch of (x, y) values and you're trying to find the best fitting quadratic with integer coefficients?
 
Relativistic Momentum, Mass, and Energy Momentum and mass (...), the classic equations for conserving momentum and energy are not adequate for the analysis of high-speed collisions. (...) The momentum of a particle moving with velocity ##v## is given by $$p=\cfrac{mv}{\sqrt{1-(v^2/c^2)}}\qquad{R-10}$$ ENERGY In relativistic mechanics, as in classic mechanics, the net force on a particle is equal to the time rate of change of the momentum of the particle. Considering one-dimensional...

Similar threads

  • · Replies 22 ·
Replies
22
Views
3K
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
6
Views
2K
Replies
15
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
1K