I have a set of two arrays of numbers, and I need to find 3 indices of these arrays, such that 2 inequalities using the arrays are satisfied. We can assume the value of one index to simplify the problem to 2 inequalities, 2 unknown indices.
However, I am having a very hard time thinking about how to solve this. For explicit detail, I have the equations:
array2[index_a] = array1[index_b] + array1[index_a]
array1[index_c] = array2[index_b] + array2[index_c]
where we can assume that index_a
is a known parameter, and I need to solve for index_b
and index_c
.
I have thought about using the linear algebra solver, but I'm not sure how to template it as I don't really have functions to solve, just index values.
Any advice would be greatly appreciated.