conjure-cp / conjure

Conjure: The Automated Constraint Modelling Tool
Other
96 stars 20 forks source link

translate-parameter doesn't work with json inputs #553

Closed ChrisJefferson closed 9 months ago

ChrisJefferson commented 1 year ago

Given files below ( in example.zip ):

given x : int
find w : int(1..10)
such that
x = w

I try two different params, one in traditional format:

letting x be 5

one in JSON

{ "x": 5 }

Then this works: conjure solve example.essence example.param.json,

but translate-parameter only works with the param, not the param.json.

temp/ $ conjure translate-parameter --eprime conjure-output/model000001.eprime --essence-param example.param
temp/ $ conjure translate-parameter --eprime conjure-output/model000001.eprime --essence-param example.param.json
Error: Missing values for parameters: x