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

.bio format #8

Open
xhajnal opened this issue Nov 30, 2016 · 2 comments
Open

.bio format #8

xhajnal opened this issue Nov 30, 2016 · 2 comments

Comments

@xhajnal
Copy link
Member

xhajnal commented Nov 30, 2016

I suggest some small tweaks in format:

assigning values (in definition): "=" instead of ","
Example:

- CONSTS: k1,1
+ CONSTS: k1=1

(where k1 is some constant and 1 is its value)

@xhajnal
Copy link
Member Author

xhajnal commented Nov 30, 2016

interval: ":" instead of ","
Example:

- 0,1
+ 0:1
or 
+ (0,1)

(where 0 represents starting point and 1 represents ending point of interval)

@daemontus
Copy link
Member

I would suggest a complete format overhaul with the following structure:
COSNT/VAR/... keywords are removed in favour of a more declarative approach, similar to the ctl format:

k = 1.2 //constant declaration
p = param(1.0, 2.1) //parameter declared using an interval
x = var(1.0, 2.5, 3.5, 4.0) //variable declared as a list of thresholds
d(x) = equation //variable equation 

Regarding the var_points/abstraction setting, I would suggest completely removing it from the format and instead used the proposed approach where only the desired numerical error is given (f.e. 0.002) and the number of thresholds is autogenerated based on that.

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

No branches or pull requests

2 participants