Skip to content

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

Merged
kejacobson merged 5 commits into
OpenMDAO:mainfrom
Asthelen:remote_lbub_fix
May 29, 2026
Merged

fix bug that caused LB/UB to not be enforced by remote component if limit was (scalar) 0#239
kejacobson merged 5 commits into
OpenMDAO: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

Asthelen commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@kejacobson kejacobson merged commit 0b66569 into OpenMDAO:main May 29, 2026
4 checks passed
@Asthelen Asthelen deleted the remote_lbub_fix branch May 29, 2026 12:57
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.

2 participants