# relaxvalue

Updated:

relaxvalue is used to extract the relaxed numerical value of an expression after solving a relaxation.

### Syntax

Y = relaxvalue(X)


### Examples

Consider the following trivial relaxed problem

sdpvar x
Model = [[2 3] <= [x x^2]];
Objective = x + x^2
optimize(Model,Objective,sdpsettings('relax',1))


The variable $$x$$ and the relaxed variable of $$x^2$$ which will be independent in the problem will have values 2 and 3 at the optimum.

value(x)
ans =

2.0000

value(x^2)
ans =

4.0000

relaxvalue(x^2)
ans =

3.0000