From 364bcdb0b71e47903f9b0f1eaa56172d90a3daeb Mon Sep 17 00:00:00 2001 From: someone Date: Mon, 4 Jun 2012 12:22:38 +0200 Subject: [PATCH] some test stuff --- psh.test1.dl | 23 +++++++++++++++++++++++ w.test1.dl | 6 +++--- w.test2.dl | 4 ++-- w.test3.dl | 6 +++--- w.test4.dl | 8 ++++---- w.test5.dl | 4 ++-- 6 files changed, 37 insertions(+), 14 deletions(-) diff --git a/psh.test1.dl b/psh.test1.dl index e69de29..a3df144 100644 --- a/psh.test1.dl +++ b/psh.test1.dl @@ -0,0 +1,23 @@ +% testing a pumpspeicherkraftwerk +storage_plant(psh). + +% define max capacity +c_max(psh,20). + +% define control i1 to 5KW (we request 5 KW) +c(psh,i1,5). + +% define control iw to 10 windspeed +c(psh,iw,10). + +% we test. +% expecting i1 to be 5 +expect_c(psh,i1,5). + +% expecting iw to be 10 +expect_c(psh,iw,10). + +% and therefore we shall produce 10KW +expect_p(psh,op,5). + + diff --git a/w.test1.dl b/w.test1.dl index c0ea4b4..bbb69e8 100644 --- a/w.test1.dl +++ b/w.test1.dl @@ -1,8 +1,8 @@ -% testing a wind-plant +% testing a wind-plant: make something. windmill(w). % define max capacity -c_max(w,20). +c_max(w,15). % define control i1 to 5KW (we request 5 KW) c(w,i1,5). @@ -17,7 +17,7 @@ expect_c(w,i1,5). % expecting iw to be 10 expect_c(w,iw,10). -% and therefore we shall produce 10KW +% and therefore we shall produce 5KW expect_p(w,op,5). diff --git a/w.test2.dl b/w.test2.dl index b436f81..9b0436b 100644 --- a/w.test2.dl +++ b/w.test2.dl @@ -1,8 +1,8 @@ -% testing a wind-plant +% testing a wind-plant: nothing requested. windmill(w). % define max capacity -c_max(w,20). +c_max(w,15). % define control i1 to 0KW (we request 0 KW) c(w,i1,0). diff --git a/w.test3.dl b/w.test3.dl index 7e72fff..777d70f 100644 --- a/w.test3.dl +++ b/w.test3.dl @@ -1,8 +1,8 @@ -% testing a wind-plant +% testing a wind-plant: no wind windmill(w). % define max capacity -c_max(w,20). +c_max(w,15). % define control i1 to 5KW (we request 5 KW) c(w,i1,5). @@ -17,7 +17,7 @@ expect_c(w,i1,5). % expecting iw to be 0 expect_c(w,iw,0). -% and therefore we shall produce 10KW +% and therefore we shall produce 0KW expect_p(w,op,0). diff --git a/w.test4.dl b/w.test4.dl index a620d2f..77c7152 100644 --- a/w.test4.dl +++ b/w.test4.dl @@ -1,8 +1,8 @@ -% testing a wind-plant +% testing a wind-plant:requested too much windmill(w). % define max capacity -c_max(w,20). +c_max(w,15). % define control i1 to 25KW (we request 25 KW) c(w,i1,25). @@ -17,6 +17,6 @@ expect_c(w,i1,25). % expecting iw to be 10 expect_c(w,iw,10). -% and therefore we shall produce 20KW as (MAX is 20) -expect_p(w,op,20). +% and therefore we shall produce 15KW (as MAX is 15) +expect_p(w,op,15). diff --git a/w.test5.dl b/w.test5.dl index e9f2e65..4e4a6b5 100644 --- a/w.test5.dl +++ b/w.test5.dl @@ -1,8 +1,8 @@ -% testing a wind-plant +% testing a wind-plant: too much wind windmill(w). % define max capacity -c_max(w,20). +c_max(w,15). % define control i1 to 5KW (we request 5 KW) c(w,i1,5). -- 2.43.0