I have previously asked an optimization question Here. I will reiterate the question and simply add a constraint to it:
I have 2 known grayscale images (256×256 matrices) $A$ and $B$ and want to find the unknown scalar variable $x$ so that:
$$\text{Minimize} \quad \|xA-B\|_F^2$$ $$\text{So That All Of The Final Image Values (256x256) Remain Between} \quad 0 \leq xA-B \leq 256 $$
The previous solution works just fine but I want to know how to optimize $x$ considering the constraint. Is this considered a Linear Programming problem?
Thanks.