Hello,
Thank you for using Algencan.
When you define v = (/(-2*x(1)**3)/(1 + x(1)**2)**2+(2*x(1))/(1 + x(1)**2),2*x(2)/), you are defining a vector of size 2 (each component is separated by a comma inside the (/ /) delimiters). If you change the dimension of v, you must change its initialization too.
It may be a good idea to post all the code that is throwing the error message you showed, thus we can identify where the error is.
You have a couple of options to program the constraints evaluation as well as their gradients. You can choose the way is more convenient to you. The file toyprob.f is the most basic example to follow, but it may not fit to you necessity depending on how the file you have is.
How the data is organized in your file? Do you have a vector for the constraints value? And what about the constraints jacobian, is it a dense matrix?
Regards,
John.