Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK]: Add observables to optimize constraint options. #4528

Closed
2 tasks
Tom-Szendrey opened this issue Aug 21, 2024 · 1 comment · Fixed by #4564 or DARPA-ASKEM/pyciemss-service#114
Closed
2 tasks
Assignees
Labels
task Development task

Comments

@Tom-Szendrey
Copy link
Contributor

Tom-Szendrey commented Aug 21, 2024

Describe the task

if (model.value?.semantics?.ode.observables) {
		modelStateAndObsOptions.value.push(...model.value?.semantics?.ode.observables.map((observable: any) => observable.id));
	}
  • Update pyciemss-service/hmi-client:

Needs to add _state when provided a state
Needs to add _observable when provided an obs
Currently this is done here: https://github.com/DARPA-ASKEM/pyciemss-service/blob/main/service/models/operations/optimize.py#L31

Here is a very minimal test case ran with hard coded _observable in pyciemss-service:

image

@Tom-Szendrey
Copy link
Contributor Author

Pending 601-add-observables-to-risk-results being merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Development task
Projects
None yet
1 participant