asa.c
20c20
< asa (double (*user_cost_function)
---
> asa (double (*rocket_cost_function)
33c33
< asa (user_cost_function,
---
> asa (rocket_cost_function,
43c43
< double (*user_cost_function) ();
---
> double (*rocket_cost_function) ();
1107c1107
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
1185c1185
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
1236c1236
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
2102c2102
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
2145c2145
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
2844c2844
< cost_derivatives (user_cost_function,
---
> cost_derivatives (rocket_cost_function,
2964c2964
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
3002c3002
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
3091c3091
< asa_exit_value = asa_exit (user_cost_function,
---
> asa_exit_value = asa_exit (rocket_cost_function,
3186c3186
< asa_exit (double (*user_cost_function)
---
> asa_exit (double (*rocket_cost_function)
3212c3212
< asa_exit (user_cost_function,
---
> asa_exit (rocket_cost_function,
3239c3239
< double (*user_cost_function) ();
---
> double (*rocket_cost_function) ();
3317c3317
< cost_derivatives (user_cost_function,
---
> cost_derivatives (rocket_cost_function,
4315c4315
< cost_derivatives (double (*user_cost_function)
---
> cost_derivatives (double (*rocket_cost_function)
4332c4332
< cost_derivatives (user_cost_function,
---
> cost_derivatives (rocket_cost_function,
4346c4346
< double (*user_cost_function) ();
---
> double (*rocket_cost_function) ();
4404c4404
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4429c4429
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4495c4495
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4594c4594
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4625c4625
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4666c4666
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4697c4697
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4740c4740
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4771c4771
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4890c4890
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4921c4921
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
4954c4954
< user_cost_function (current_generated_state->parameter,
---
> rocket_cost_function (current_generated_state->parameter,
asa.h
asa_usr_asa.h
0a1
>
165c166
< #define USER_COST_FUNCTION cost_function
---
> #define USER_COST_FUNCTION rocket_cost_function
asa_usr.c
7c7
<
---
> double payload;
11c11
< #if MY_TEMPLATE /* MY_TEMPLATE_includes */
---
> //#if MY_TEMPLATE /* MY_TEMPLATE_includes */
13c13,15
< #endif
---
> //#include "user_cst.h"
> //#define USER_COST_FUNCTION cost_function
> //#endif
304,307c306,313
< fprintf (ptr_out, "CC = %s\n", argv[1]);
< for (compile_cnt = 2; compile_cnt < argc; ++compile_cnt) {
< fprintf (ptr_out, "\t%s\n", argv[compile_cnt]);
< }
---
> // fprintf (ptr_out, "CC = %s\n", argv[1]);
> // for (compile_cnt = 2; compile_cnt < argc; ++compile_cnt) {
> // fprintf (ptr_out, "\t%s\n", argv[compile_cnt]);
> // }
> sscanf(argv[1],"%lf",&payload);
> //sscanf("341.","%lf",&payload);
> printf ("payload = %f \n",payload);
>
309a316,317
>
>
1345a1354
> //#include "user_cst.h"
asa_usr_cst.c
15c15
<
---
> //#include "user_cst.h"
asa_usr.h