From 2439e63ae55fb0e3fca0636cdc1bdbf0747e95e4 Mon Sep 17 00:00:00 2001 From: Shawn Yama Date: Mon, 7 Oct 2024 14:55:23 -0400 Subject: [PATCH 01/16] change output type and show model config in funman op --- .../scripts/docker-compose-taskrunner.yml | 1 + .../src/assets/css/theme/_variables.scss | 2 +- .../model/petrinet/tera-parameter-table.vue | 1 + .../workflow/ops/funman/funman-operation.ts | 7 +- .../ops/funman/tera-funman-drilldown.vue | 8 +- .../workflow/ops/funman/tera-funman-node.vue | 18 +++- .../ops/funman/tera-funman-output.vue | 85 ++++++++++++++++--- .../tera-model-config-drilldown.vue | 35 ++------ .../src/model-representation/mira/mira.ts | 24 ++++++ packages/taskrunner/core.dimacs | 70 +++++++++++++++ packages/taskrunner/unsat.core | 1 + 11 files changed, 201 insertions(+), 51 deletions(-) create mode 100644 packages/taskrunner/core.dimacs create mode 100644 packages/taskrunner/unsat.core diff --git a/containers/scripts/docker-compose-taskrunner.yml b/containers/scripts/docker-compose-taskrunner.yml index bb358e4c08..f48271d486 100644 --- a/containers/scripts/docker-compose-taskrunner.yml +++ b/containers/scripts/docker-compose-taskrunner.yml @@ -69,6 +69,7 @@ services: - ../../packages/funman:/funman_task - ../../packages/taskrunner:/taskrunner command: /funman_task/dev.sh + platform: linux/amd64 equation_extraction_cpu-taskrunner: build: diff --git a/packages/client/hmi-client/src/assets/css/theme/_variables.scss b/packages/client/hmi-client/src/assets/css/theme/_variables.scss index 9d629fb403..52e514b606 100644 --- a/packages/client/hmi-client/src/assets/css/theme/_variables.scss +++ b/packages/client/hmi-client/src/assets/css/theme/_variables.scss @@ -420,7 +420,7 @@ $accordionHeaderTextActiveHoverColor: $textColor !default; $accordionContentBorder: 0 none !default; $accordionContentBg: #ffffff !default; $accordionContentTextColor: $textColor !default; -$accordionContentPadding: 0.5rem 0.5rem 2rem !default; +$accordionContentPadding: 0.5rem 0.5rem 0.5rem !default; //tabview $tabviewNavBorder: solid rgba(0, 0, 0, .12) !default; diff --git a/packages/client/hmi-client/src/components/model/petrinet/tera-parameter-table.vue b/packages/client/hmi-client/src/components/model/petrinet/tera-parameter-table.vue index ce5d94df9c..d5460b4993 100644 --- a/packages/client/hmi-client/src/components/model/petrinet/tera-parameter-table.vue +++ b/packages/client/hmi-client/src/components/model/petrinet/tera-parameter-table.vue @@ -142,6 +142,7 @@ import InputNumber from 'primevue/inputnumber'; import Dropdown from 'primevue/dropdown'; import Checkbox from 'primevue/checkbox'; import TeraInputText from '@/components/widgets/tera-input-text.vue'; +import Divider from 'primevue/divider'; import TeraParameterEntry from './tera-parameter-entry.vue'; import TeraStratifiedMatrixModal from './model-configurations/tera-stratified-matrix-modal.vue'; diff --git a/packages/client/hmi-client/src/components/workflow/ops/funman/funman-operation.ts b/packages/client/hmi-client/src/components/workflow/ops/funman/funman-operation.ts index d355d0047c..2017c6b485 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/funman/funman-operation.ts +++ b/packages/client/hmi-client/src/components/workflow/ops/funman/funman-operation.ts @@ -47,10 +47,10 @@ export interface FunmanOperationState extends BaseState { numSteps: number; tolerance: number; inProgressId: string; + runId: string; compartmentalConstraint: CompartmentalConstraint; constraintGroups: ConstraintGroup[]; requestParameters: RequestParameter[]; - // selected state in ouptut trajectoryState?: string; } @@ -64,7 +64,7 @@ export const FunmanOperation: Operation = { { type: 'modelConfigId', label: 'Model configuration' }, { type: 'datasetId', label: 'Dataset', isOptional: true } ], - outputs: [{ type: 'funmanQueryId' }], + outputs: [{ type: 'modelConfigId', label: 'Model configuration' }], isRunnable: true, action: () => {}, initState: () => { @@ -75,7 +75,8 @@ export const FunmanOperation: Operation = { compartmentalConstraint: { name: 'Compartmental constraint', isActive: true }, constraintGroups: [], requestParameters: [], - inProgressId: '' + inProgressId: '', + runId: '' }; return init; } diff --git a/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-drilldown.vue index 85b123043b..5d21cff74a 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-drilldown.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-drilldown.vue @@ -143,8 +143,8 @@ - - diff --git a/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-output.vue b/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-output.vue index 79c4b50a03..22218f9959 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-output.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/funman/tera-funman-output.vue @@ -1,7 +1,7 @@