MATLAB: Optimization Routine for two equations, three unknowns

equationsoptimization

Hi,
I am trying to set up a basic optimization routine in matlab.
Equation 1: 3.6*x*y = 750
Equation 2: 19.8*x*y*z = 800000
x = 6:1:12
y = 20:1:40
z = 150:1:250
Is there a tool/method to solve/optimize this ?
Thank You.

Best Answer

>> [X,Y,Z] = ndgrid(6:12,20:40,100:150);
>> mask = (3.6.*X.*Y == 750) & (1.98.*X.*Y.*Z == 800);
>> nnz(mask)
ans =
0
There are no solutions under those constraints.