There are 3 variables x,y,z . x can have the integer values from 1-65535 , y can have integer values from 1-3 and z can have integer values from 0-2047.
The equation is
$$F = 13000000/((32x)*(y+(z/2048)))$$
F can take the values such as 4800 , 9600 . But as x,y and z are integers , we will not get the value of F exactly equal to 4800 or 9600 . The problem is to find integers x,y,z such the error in F is < 0.01% .
How to approach such kind of problems?
2026-05-15 18:08:18.1778868498
Optimization problem : Find value of variables such that error is mimimum
51 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
The solution depends on the type of arithmetic you are assuming.
The following
C#code performs a brute-force search:It is using "double" arithmetic and results in 64 solutions. For pure integer arithmetic, the exhaustive search does not find any solutions.
Example solution:
In principle, you could use solvers like MiniZinc or Z3 for such problems. But you have to take care about the bit-length of the operands.
MiniZincis restricted to 32 bits which would be too short for the problem at hand.