Hi everyone!
I have in my GUI and two radio button
choco and
gecode and under each button (choco or gecode)I have 2 radio buttons
solution optimal and
Feasible solution: my problem lies in the selection buttons. Let me explain:
when I click the radio button choco, I want to have the optimal solution of the model choco so I click on the optimal solution, but the radio button choco is no longer selected but i need it to be selected , the same for the gecode button.
here is a piece of code but it does not work incorrectly:
if ( radio1.isSelected())
{
{
if ( radio3.isSelected())
{
res=model.find_Optimal_Solution(n, m, R1, C1, B1, Dr1, Dc1, Db1, GainMatrix1);
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
System.out.print(res[i][j]+" " );
System.out.println();
}
}
else if ( radio4.isSelected())
{
res2=model.find_realizable_solution(n, m, R1, C1, B1, Dr1, Dc1, Db1);
System.out.println("///////////////////////////" );
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
System.out.print(res2[i][j]+" " );
System.out.println();
}}
}
else if ( radio2.isSelected())
{
if( radio5.isSelected())
{
}
else if( radio6.isSelected())
{
}
}
what I want is that when I select the radio button choco remains selected when I select fesable or Optimal solution that belong to this choco button (same thing for the radio button gecode)
Can YOU help me to solve this problem??
is it preferable to choose another way other than the radio buttons to these satsfaire these conditions?
Thank you very much for your help