I am afraid it is not. rel_entr(x,y） = x.*log(x/y). They are not the same. one is log, the other is exp. And the position of x and y is not the same.

```
cvx_begin
variables x y z;
min z; % wrong here, should use minimize(z) instead
{x,y,z} == exponential(1);
x>=1;x<=10;
y>=0.01;y<=1;
cvx_end
```

I have this code run on matlab. It gives an answer 0.

x = 3.55;

y= 0.89

z = 80;

actually, y*exp(x/y) = 48. So what is wrong? It output little information that I can not decide where is wrong. On Lingo, it gives the result that

x = 1;y=1; z = 2.7.

EDIT: mcg here. I’m editing the post so that the answer is more easily seen by others: the problem with the code above is the use of `min`

instead of `minimize`

.

------------Updated--------------

**I am also curious if it is possible to print out the process of iterating. For example, I want to plot the processing of converging of the object function’s value or the variables related to the object function. for example, x in the previous code or z in the previous code**

Thanks a lot for your help. My problem is I have downloaded a old version of documentation file which was written last year. I have gone to the website and updated it.

------------Updated---------------