Changes between Version 215 and Version 216 of WikiStart


Ignore:
Timestamp:
08/13/19 16:43:15 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v215 v216  
    6464
    6565In GeniusWeb, all number values are processed as BigDecimal to avoid rounding errors.
     66
     67Here is an example of a bid in JSON format. issue 2 and issue 3 are number values, issue 1 is a discrete issue. All values in quotes are discrete values, while values without quotes are number values. 
     68
     69{{{
     70{"issuevalues":{
     71  "issue3":9012345678901234567.89,
     72  "issue2":1,
     73  "issue1":"b"
     74}}
     75}}}
     76
     77When describing the domain, the set of allowed values has to be given. To give an example:
     78
     79{{{
     80{"name":"testdomain","issuesValues":{
     81  "issue1":{"range":["2","3","0.22"]},
     82  "issue2":{"values":["i1v1","i1v2"]}
     83 }}
     84}}}
     85
     86the "range" indicates issue 1 is a number issue, with allowed values from 2 to 3 with steps 0.22. The "values" indicates issue2 is a discrete issue, with allowed values "i1v1" and "i1v2".
    6687
    6788== profile