Originally posted by: FiFila
Hi Olivier;
Thanks for your reply but I think I did not express correctly what are my problems.
My problems are in two sides.
First and my main problem is related to Tansig. I have to work with Tansig. The inputs of each layer (x[i][j] i:layer, i:index of )are changed by applying Tansig function and then they are multiple with (wi) and add with (bi) [ sum(tansig(x[i][j])*w[i][j])for (j in range x[i])+bi]. The problem that I encounter with Tansig is that iits amount changes very few by changing the inputs. As the CP works with integer amounts, I should multiple it with a power of ten but my interval expands exponentially. Therefore, the time will be so much high. I do not know how to reduce the searching space.
Second problem is related to my knowledge in CP because I am beginner in this field.
I want to minimize the y by considering the following inputs.
The numbers of my inputs and my constraints are very high. And the number of layer is more than this. For instance a very small example with 5 inputs and two input layers.
Model:
xrange 1..5
for j in xrange x[1][j]=Tansig[1][j];
x[2][1]=x[1][1]*w[1][1][1]+x[1][2]*w[1][2] [1]+x[1][3]*w[1][3][1] +x[1][4]*w[1][4] [1]+b[1][1];
x[2][2]=x[1][1]*w[1][1][2]+x[1][2]*w[1][2] [2]+x[1][3]*w[1][3][2] +x[1][4]*w[1][4] [2]+b[1][2];
x[2][3]=x[1][1]*w[1][1][3]+x[1][2]*w[1][2] [3]+x[1][3]*w[1][3][3] +x[1][4]*w[1][4] [3]+b[1][3];
x[2][4]=x[1][1]*w[1][1][4]+x[1][2]*w[1][2] [4]+x[1][3]*w[1][3][4] +x[1][4]*w[1][4] [4]+b[1][4];
x[2][5]=x[1][1]*w[1][1][5]+x[1][2]*w[1][2] [5]+x[1][3]*w[1][3][5] +x[1][4]*w[1][4] [5]+b[1][5];
for j in xrange x[2][j]=Tansig[2][j];
y=x[2][1]*w[2][1][1]+x[2][2]*w[2][2] [1]+x[2][3]*w[2][3][1] +x[2][4]*w[2][4] [1]+b[2][1];
Goal:
Min y
Subject to:
x[1][1]+2*x[1][2]*x[1][2]!=20; x[1][3]+0.2x[1][4]!=2.1; x[1][3]+x[1][2]=4;...
Regards
Fila
#ConstraintProgramming-General#DecisionOptimization