I want to define a CVX constant variable dimension (2,1)

and CVX variables of dimension (3,1)

concatenating it as x(5,1). in which 3 are CVX variables and 2 are CVX constants.

so that I can solve Ax <= b constraint,

Is it allowed in CVX?

if it is allowed how to define.

I don;t know what you mean by CVX **constant** variable . I’ll assume you just mean CVX variable if you have a constant, you don;t need to declare it in CVX. However, please read http://cvxr.com/cvx/doc/basics.html#assignment-and-expression-holders .

```
cvx_begin
variables c(2,1) d(3,1)
A*[c;d] <= b
cvx_end
```

or

```
cvx_begin
variables c(2,1) d(3,1)
x = [c;d]
A*x <= b
cvx_end
```