rasmusmarak / TOSS

Trajectory Optimization for a Spacecraft Swarm Orbiting 67P/Churyumov-Gerasimenko.
GNU General Public License v3.0
2 stars 0 forks source link

Profile code #29

Closed gomezzz closed 1 year ago

gomezzz commented 1 year ago

Please post some cprofile outputs to see where our runtime is going, it is starting to be quite slow :pray:

rasmusmarak commented 1 year ago

Test 1:

(From here on after referred to as the "Basic problem").

Search space: Cartesian coordinates [r_x,r_y,r_z,v_x,v_y,v_z]

Integration time:

Problem parameters:

Algorithm parameters:

Results:

Trajectory with mesh:

Skärmavbild 2023-03-05 kl  18 27 09

Trajectory (x and y axis):

Skärmavbild 2023-03-05 kl  18 27 32

C-profile: Sorted by number of calls: output_calls.txt Sorted by time: output_time.txt

rasmusmarak commented 1 year ago

Test 2:

Basic Problem structure and the following changes:

Setup: Search space: Osculating orbital elements [a, e, o, w, i, ea]

Integration time:

Problem parameters:

Algorithm parameters:

Results:

Trajectory with mesh:

Skärmavbild 2023-03-05 kl  19 40 19

Trajectory (x and y axis):

Skärmavbild 2023-03-05 kl  19 40 53

C-profile: Sorted by number of calls: output_calls.txt Sorted by time: output_time.txt

rasmusmarak commented 1 year ago

Test 3:

Basic problem structure and the following changes:

Setup: Search space: Osculating orbital elements [a, e, o, w, i, ea]

Integration time:

Problem parameters:

Algorithm parameters:

Results:

Trajectory with mesh:

Skärmavbild 2023-03-05 kl  20 54 30

Trajectory (x and y axis):

Skärmavbild 2023-03-05 kl  20 54 52

C-profile: Sorted by number of calls: output_calls.txt Sorted by time: output_time.txt

rasmusmarak commented 1 year ago

Test 4:

Basic problem structure and the following changes:

Setup: Search space: Osculating orbital elements [a, e, o, w, i, ea]

Integration time:

Problem parameters:

Algorithm parameters:

Results:

Trajectory with mesh:

Skärmavbild 2023-03-05 kl  21 56 53

Trajectory (x and y axis):

Skärmavbild 2023-03-05 kl  21 57 15

C-profile: Sorted by number of calls: output_calls.txt Sorted by time: output_time.txt

gomezzz commented 1 year ago

In future plots ideally add fitness over generations

rasmusmarak commented 1 year ago

Profile code:

Number of spacecrafts = 1 Number of maneuvers = 1 Mission time = 2419200 [s] (ie 4 weeks, or 28 days)

Population size = 120 Number of generations = 10 Number of threads = 40

Penalty scaling factor = 0.1 Max velocity scaling factor = 40

Radius bounding spheres = [4000, 15000]. (i.e inner and outer) Rotation of body = True

output_calls.txt output_time.txt