Answers to: Scheduling Problemhttp://www.or-exchange.com/questions/13346/scheduling-problem<p>Hey everyone I really hope I can get your help. I'm trying to solva a scheduling problem having some time and resource constraints. I work with time instances that are very very long and the optimizer is taking too long. I'm trying to switch on events, that is calculate the objective function when a new task starts or finishes. Therefore i inserted the following constraints:</p>
<pre><code>for (int ist =0; ist < finalIstant; ist++)
{
IloIntExprArray futureEvents(env); //eventi profilo
IloIntExpr cond;
for (int m = 0; m< jobs.getSize(); m++)
{
condEq= ist==jobs[m];
}
for (int f = 0; f< jobs.getSize(); f++)
{
IloIntExpr condGreater=jobs[f] > ist;
futureEvent.add(condGreater);
}
nextEvent=IloMin(futureEvents);
IloIntExpr event=nextEvent-ist;
IloInt tempOot = itThis->optimal;
IloIntExpr diff = tempOpt - IloSum(risIst);
IloIntExpr diffQuad = diff * diff;
expression.add(condEq*diffQuad*event);
}
</code></pre>enWed, 23 Oct 2019 02:02:13 -0000