Originally posted by: MohamedAbuSharkh
Hi ,
I am new to optimization studio and i am facing a small issue. I am getting an "Infeasible solution " result and i was hoping to look into the detailed model to resolve that,
is there a way to extract the prodced model from the OPL program in a way similar to ExtractModel method ? or can i use the same method within the OPL code,
I tried adding extract model command in a script block-excute { } before the constraint block but it didn't work correctly.
I am using optimization studio 12.5
The code that is causing the infeasibility looks like this
forall(r in requests)
{
forall(s in server_nonode)
{
if( isSource[r][v]==1)
(sum(l in links) (Y[r][l]*linkOutserver[l][s]) - sum (l in links) (Y[r][l]*linkInserver[l][s])) == X[v][s];
}
}
}
forall(v in VM_no_node)
{
forall(r in requests)
{
forall(s in server_nonode)
{
if( isDest[r][v]==1)
(sum(l in links) (Y[r][l]*linkOutserver[l][s]) - sum (l in links) (Y[r][l]*linkInserver[l][s])) ==0 (-1*X[v][s]);
}
}
}
Your help is highly appreciated guys
Thanks and Best Regards
#CPLEXOptimizers#DecisionOptimization