Originally posted by: satdene
Thank you for responses. I use Cplex 12.2.2. My interactive also gave the same results you wrote. However, when I call Cplex from C# environment, problem seems to be infeasible. This is my code where I solve the model;
fm.SetParam(Cplex.DoubleParam.WorkMem, 3000);
fm.SetParam(Cplex.IntParam.NodeFileInd, 3);
fm.ExportModel("fm.lp");
fm.SetOut(null);
fm.Solve();
if (fm.GetStatus() == Cplex.Status.Optimal)
{
fobj = fm.GetObjValue();
for (int t = 0; t < T; t++)
Vw[t] = fm.GetValue(fw[t]);
}
else
{
Console.WriteLine(fm.GetStatus());
Console.WriteLine("I couldn't solve the problem");
Console.ReadKey();
}
and you can see the Console output from the attached file in which model's status is written as infeasible. I don't see any reason for that. Any suggestion would be appreciated.
#CPLEXOptimizers#DecisionOptimization