Skip to content

fix bug that caused LB/UB to not be enforced by remote component if limit was (scalar) 0#239

Open
Asthelen wants to merge 5 commits intoOpenMDAO:mainfrom
Asthelen:remote_lbub_fix
Open

fix bug that caused LB/UB to not be enforced by remote component if limit was (scalar) 0#239
Asthelen wants to merge 5 commits intoOpenMDAO:mainfrom
Asthelen:remote_lbub_fix

Conversation

@Asthelen
Copy link
Copy Markdown
Collaborator

The recent functions _lower_bound_used and _upper_bound_used on the client side mistakenly returned bound instead of bound>-1e20 or bound<1e20, if the lower/upper bound returned from the server side was a scalar. I think that caused any constraints of limits of a scalar zero to not be enforced on the client side.

@Asthelen Asthelen requested review from kejacobson and timryanb April 29, 2026 12:40
@Asthelen
Copy link
Copy Markdown
Collaborator Author

Asthelen commented May 7, 2026

Also added an additional option, stop_server_for_down_time, to remote components. In my case, I have a server that would only occasionally be called (to compute multi-fidelity corrections), leading to the HPC job just sitting idle for long periods of time. This allows the HPC job to be shut down between calls, either after each function (=1) or derivative (=2) call.

This probably won't be useful for most applications, but gives the user a little more flexibility.

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.

1 participant