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

Why does the integral work when the lower bound is 0? #353

Open
shrey183 opened this issue Jul 26, 2019 · 0 comments
Open

Why does the integral work when the lower bound is 0? #353

shrey183 opened this issue Jul 26, 2019 · 0 comments

Comments

@shrey183
Copy link

shrey183 commented Jul 26, 2019

Consider the following SMT2 file,

`
(set-logic QF_NRA_ODE)

(declare-fun x () Real)

(declare-fun x_0 () Real [0,10])

(declare-fun x_1 () Real [0,10])

(declare-fun x_2 () Real [0,10])

(declare-fun x_3 () Real [0,10])

(declare-fun time_1 () Real [0,10])

(declare-fun time_2 () Real [0,10])

(define-ode flow_1 ((= d/dt[x] 1)))



(assert (= x_0 0.0))

(assert (= time_1 1.0))

(assert (= time_2 2.0))

(assert
  (and
	;; EXPECT x_1 = 1
	(= [x_1] (integral 0.0 time_1 [x_0] flow_1))

	;; EXPECT x_2 = 2 
	(= [x_2] (integral 1.0 time_2 [x_1] flow_1))

	;; EXPECT x_3 = 0 
	(= [x_3] (integral 1.0 time_1 [x_1] flow_1))
  )
)


(check-sat)

(exit)

`

Here is the model obtained by dReal3,

` delta-sat with the following box:

time_1 : [1, 1];

time_2 : [2, 2];

x_0 : [0, 0];

x_1 : [1, 1];

x_2 : [3, 3];

x_3 : [2, 2]`

I have written comments stating what one should expect each variable to be, though I am not sure why we are getting the above model.

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

1 participant