Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6918) GUI for CMA should allow zero weights
Home

[Freeciv-Dev] Re: (PR#6918) GUI for CMA should allow zero weights

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6918) GUI for CMA should allow zero weights
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Wed, 26 Nov 2003 01:33:36 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6918 >

On Mon, Nov 24, 2003 at 03:43:01PM -0800, Benoit Hudson wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=6918 >
> 
> On Sat, Nov 22, 2003 at 07:50:21PM +0100, Raimar Falke wrote:
> > You can do all this without touching the core. You can allow 0 in the
> > frontend and multiply all weights by 1000 before you pass them to the
> > core.
> 
> What does multiplying the weights achieve?

Allowing 0 at the frontend. Zero mapps to 1 while the other weights
are multiplied by 1000.

> The optimization problem is scale-invariant.

Yes.

> The current code uses a lot of short and char values so at first
> glance multiplying by 1k might actually be a problem (one easily
> remedied of course).

Possible.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  reality.sys corrupt. Reboot Universe? (y,n,q)




[Prev in Thread] Current Thread [Next in Thread]