Page 1 of 1

Nearest polar opposite economies

Posted: Mon Mar 16, 2015 12:10 am
by al.khwarizmi
As is well known, trading is (generally) most profitable between Poor Agricultural and Rich Industrial planets. I have been doing "milk runs" between Sotiera and Inera and this has been going well but I wondered if I could do better. It turns out that I could These are the 10 closest pairs of Rich Industrial and Poor Agricultural planets in Galaxy 1:

Code: Select all

('Xexedi', 'Laenin') 2.2360679775
('Malama', 'Qudira') 7.28010988928
('Esbiza', 'Qudira') 8.0622577483
('Enzaer', 'Bivea') 8.60232526704
('Isence', 'Zarece') 9.48683298051
('Gerete', 'Ususor') 9.48683298051
('Zasoceat', 'Riantiat') 9.48683298051
('Anlama', 'Tiinlebi') 9.8488578018
('Ensoreus', 'Ararus') 13.0384048104
('Onlema', 'Xexeti') 13.6014705087
In fact, every one of these pairs has a shorter distance between its members than the Sotiera-Inera route, leaving plenty of witchspace fuel to speed things along and/or give leeway to claim bounties. So I left that route.

Is anyone interested in further calculations such as for other galaxies, taking account of government types, etc.?

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 5:04 am
by spara
Numbers and statistics are always interesting although in games like this they tend to take out the element of finding.

Out of interest, what are those numbers representing as they seem to not be game distances?

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 5:20 am
by al.khwarizmi
spara wrote:
Out of interest, what are those numbers representing as they seem to not be game distances?
Relative Euclidean distance based on the following:

http://wiki.alioth.net/index.php/Oolite ... t/Galaxy_1

For a sense of scale, at a relative distance of about 15 there is a pretty comfortable amount of witchspace fuel between planets for various purposes, I think about 40% left.

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 5:43 am
by spara
Ok. To do this properly, you need to use the game distance formula which is not exactly euclidian. It's 0.4*math.floor(sqrt(dx*dx + dy/2*dy/2)) in pseudo language. Dividing y coordinates by 2 is just scaling, but rounding the sqrt with floor makes the difference.

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 5:48 am
by al.khwarizmi
spara wrote:
Ok. To do this properly, you need to use the game distance formula which is not exactly euclidian. It's 0.4*math.floor(sqrt(dx*dx + dy/2*dy/2)) in pseudo language. Dividing y coordinates by 2 is just scaling, but rounding the sqrt with floor makes the difference.
That is interesting. The imperfect calculations I've done have been useful nonetheless. If there is any further interest in this issue I will include the more accurate ones.

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 10:38 am
by ClymAngus
Yeah, why the hell not? I said I was only going to do the one chart and I ended up mapping all 8. If you see something that hasn't been done that can add the the sum total of the ooniverse. Might as well eh? Even as purely a personal challenge.

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 11:39 am
by spara
ClymAngus wrote:
Yeah, why the hell not?
Indeed. Maybe a web page making these calculations based on user choices.

Re: Nearest polar opposite economies

Posted: Mon Mar 16, 2015 6:47 pm
by al.khwarizmi
I'm not so sure I want to get hosting space and learn Javascript just for this purpose. I will, however, do custom calculations for whoever wants them.

Re: Nearest polar opposite economies

Posted: Tue Mar 17, 2015 6:36 am
by Diziet Sma
al.khwarizmi wrote:
I'm not so sure I want to get hosting space
That's the easy part.. just make a page on the Oolite Wiki.. :wink:

Re: Nearest polar opposite economies

Posted: Tue Mar 17, 2015 10:26 am
by al.khwarizmi
Diziet Sma wrote:
al.khwarizmi wrote:
I'm not so sure I want to get hosting space
That's the easy part.. just make a page on the Oolite Wiki.. :wink:
Word ... maybe.

Re: Nearest polar opposite economies

Posted: Tue Mar 17, 2015 12:50 pm
by ClymAngus
Well, you know. We don't want to push people into doing things they don't want to. If your going to do something (anything for that matter) do it because you want to or your bartering your time for gain.

No shame in saying "I've got better things to spend my time on right now." It's a game at the end of the day, no one is going to think any less of you.

When Yoda said; Do or do not there is no try. "Do not" was a valid option. :D

Re: Nearest polar opposite economies

Posted: Wed Mar 18, 2015 1:26 am
by Diziet Sma
ClymAngus wrote:
Well, you know. We don't want to push people into doing things they don't want to. If your going to do something (anything for that matter) do it because you want to or your bartering your time for gain.

No shame in saying "I've got better things to spend my time on right now." It's a game at the end of the day, no one is going to think any less of you.

When Yoda said; Do or do not there is no try. "Do not" was a valid option. :D
Agreed.. I was merely pointing out that hosting isn't really a problem. Learning Javascript, on the other hand.. yes, that's a big task.

Re: Nearest polar opposite economies

Posted: Mon Mar 23, 2015 10:55 am
by al.khwarizmi
I should probably Javascript anyway at some point. I don't know if I should do it now.