Skip to content

test implement balanced field#203

Open
AmielMetier wants to merge 3 commits intomainfrom
202-general-new-problem-the-van-der-pol-oscillator
Open

test implement balanced field#203
AmielMetier wants to merge 3 commits intomainfrom
202-general-new-problem-the-van-der-pol-oscillator

Conversation

@AmielMetier
Copy link
Collaborator

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c8e0d6599

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +75 to +79
:beam,
:cart_pendulum,
:chain,
:dielectrophoretic_particle,
:double_oscillator,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop excluding existing problems from discovery

Adding this exclusion block in make_list_of_problems removes nearly all previously available problems (beam/chain/glider/jackson/rocket/etc.) from LIST_OF_PROBLEMS, which means their public methods are no longer generated and their backend files are no longer included even though their metadata/model files still exist. This turns a feature addition into a broad API regression for users who call any of those problems.

Useful? React with 👍 / 👎.

model,
begin
r[0:N], (start = r_t0)
v[0:N], (start = v_t0 + 10.0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Constrain velocity away from zero in balanced field model

The velocity state is unconstrained here, but the dynamics later divide by v (in ), so the NLP domain includes points where the model is undefined (v = 0) and can produce Inf/NaN during solver trial evaluations. The metadata already defines v_min/v_max, so this missing bound is likely unintended and can cause numerical failures or unstable solves.

Useful? React with 👍 / 👎.

K_nom = 1.0 / (pi * AR * e)

# model
ocp = @def begin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AmielMetier @HediChennoufi nice, looks good. this code will also work for the non _s version (the one currently using a dynamics function)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aircraft Balanced Field Length Calculation

4 participants

Comments