Re: [Fwd: gmpl question]
Michael Hennebry <[email protected]> Tue, 21 Dec 2021 14:08:48 -0600 (CST)
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 17 Dec 2021, Andrew Makhorin wrote: > -------- Forwarded Message -------- > From: Davor Ocelic <[email protected]> > To: [email protected] > Subject: gmpl question > Date: Fri, 17 Dec 2021 10:07:38 +0100 > In the glpk example `assign.mod`, the constraint is that > an agent can have only one task assigned: > > s.t. phi{i in I}: sum{j in J} x[i,j] <= 1; > /* each agent can perform at most one task */ > > I would need to change this rule so that an agent doesn't > have a limit on number of tasks, but all tasks need to be > distributed among a limited number of agents. (For example, > distribute the 8 tasks in the example to 4 agents). Is there a reason not to just drop the constraint? -- Michael [email protected] I disapprove of winter, but winter doesn't care.