Let $\mathcal{S}\subseteq\mathbb{R}^n$ be a set of an inaccessible area. We consider the time as $\{\ldots,~ t-1,~ t,~ t+1,~ \ldots\}$. We assume that a position of a point at time $t$ is given as $x\in\mathbb{R}^n$, and its position will be changed to $x+v$ at time $t+1$. (linearly move) However, the point must not enter the area $\mathcal{S}$.
Let me introduce an example.
The amount of the change of position should be reduced because the point cannot enter the area $\mathcal{S}$. Thus, the position at $t+1$ will be like the following.
I want to express this problem in mathematically.
\begin{array}{cl} c & = & \displaystyle\max_{0 \le c \le 1} & c\\ && \text{subject to} & x+c'v \notin \mathcal{S},\quad\forall c'\in[0,c] \end{array}
I express the problem like the above. However, $c$ is the objective function (as a constant function), and $c$ is also in the range for the constraint (as $[0,c]$). Is there any nice expression for this problem?
In addition, I cannot solve this problem using MATLAB because the term of $\forall c' \in [0,c]$. Actually, I am running an algorihtm substituting $c$ into $0.1,~0.2,~\ldots,~0.9,~1.0$ and choosing one. Please let me know some packages or algorithms for solving this problem if you know. Thank you.

