电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动,计算电力系统所有发电机能否同步运行 1运行说明: 请输入初始功率S0,形如a+bi 请输入无限大系统母线电压V0 请输入系统等值电抗矩阵B 矩阵B有以下元素组成的行矩阵 1正常运行时的系统直轴等值电抗Xd 2故障运行时的系统直轴等值电抗X d 3故障切除后的系统直轴等值电抗 请输入惯性时间常数Tj 请输入时段数N 请输入哪个时段发生故障Ni 请输入每时段间隔的时间dt
上传时间: 2015-06-13
上传用户:it男一枚
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
将魔王的语言抽象为人类的语言:魔王语言由以下两种规则由人的语言逐步抽象上去的:α-〉β1β2β3…βm ;θδ1δ2…-〉θδnθδn-1…θδ1 设大写字母表示魔王的语言,小写字母表示人的语言B-〉tAdA,A-〉sae,eg:B(ehnxgz)B解释为tsaedsaeezegexenehetsaedsae对应的话是:“天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅”。(t-天d-地s-上a-一只e-鹅z-追g-赶x-下n-蛋h-恨)
上传时间: 2013-12-19
上传用户:aix008
本代码为编码开关代码,编码开关也就是数字音响中的 360度旋转的数字音量以及显示器上用的(单键飞梭开 关)等类似鼠标滚轮的手动计数输入设备。 我使用的编码开关为5个引脚的,其中2个引脚为按下 转轮开关(也就相当于鼠标中键)。另外3个引脚用来 检测旋转方向以及旋转步数的检测端。引脚分别为a,b,c b接地a,c分别接到P2.0和P2.1口并分别接两个10K上拉 电阻,并且a,c需要分别对地接一个104的电容,否则 因为编码开关的触点抖动会引起轻微误动作。本程序不 使用定时器,不占用中断,不使用延时代码,并对每个 细分步数进行判断,避免一切误动作,性能超级稳定。 我使用的编码器是APLS的EC11B可以参照附件的时序图 编码器控制流水灯最能说明问题,下面是以一段流水 灯来演示。
上传时间: 2017-07-03
上传用户:gaojiao1999
【问题描述】 在一个N*N的点阵中,如N=4,你现在站在(1,1),出口在(4,4)。你可以通过上、下、左、右四种移动方法,在迷宫内行走,但是同一个位置不可以访问两次,亦不可以越界。表格最上面的一行加黑数字A[1..4]分别表示迷宫第I列中需要访问并仅可以访问的格子数。右边一行加下划线数字B[1..4]则表示迷宫第I行需要访问并仅可以访问的格子数。如图中带括号红色数字就是一条符合条件的路线。 给定N,A[1..N] B[1..N]。输出一条符合条件的路线,若无解,输出NO ANSWER。(使用U,D,L,R分别表示上、下、左、右。) 2 2 1 2 (4,4) 1 (2,3) (3,3) (4,3) 3 (1,2) (2,2) 2 (1,1) 1 【输入格式】 第一行是数m (n < 6 )。第二行有n个数,表示a[1]..a[n]。第三行有n个数,表示b[1]..b[n]。 【输出格式】 仅有一行。若有解则输出一条可行路线,否则输出“NO ANSWER”。
标签: 点阵
上传时间: 2014-06-21
上传用户:llandlu
实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可传递闭包关系矩阵是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元关系的可传递闭包\n"); void warshall(int,int); int k , n; printf("请输入矩阵的行数 i: "); scanf("%d",&k); 四川大学实验报告 printf("请输入矩阵的列数 j: "); scanf("%d",&n); warshall(k,n); }
上传时间: 2016-06-27
上传用户:梁雪文以
硬件设计中常见模块电路设计1. LDO电源电路设计2. DC-DC电源设计3. 时钟电路设计4. 复位电路设计5. MCU电路设计6. FPGA/CPLD电路设计7. 存储电路设计8. 电平转换电路设硬件设计中常见接口电路设计1. RS323/RS485等接口电路设计2. PS/2接口电路设计3. 按键电路设计4. GigE接口电路设计5. CAN总线接口设计6. USB接口电路设计7. DVI/HDMI接口设计
上传时间: 2022-03-30
上传用户:20125101110
CANopen是基于CAN协议的高层协议,它是嵌入式网络应用中最流行的一种高层协议,特别是机器内部的嵌入式控制网络。CANopen协议定义了标准的通讯对象,使得各种控制信息:实时数据、配置数据、特殊功能数据以及网络管理数据都能够封装在标准通讯对象中在网络中传输。本人的研究工作主要在以下几个方面:1.CAN总线原理的研究和实现。本人深入研究CAN总线的通讯原理,并且通过焊制简单的实验电路板,实现了最基本的两个CAN节点的通讯。2.CANopen协议原理的研究。本人首先研究了CANopen协议的构成,然后详细研究了DS301协议,该协议是CANopen所有协议的基础。另外还对常用的DS302协议以及DS401协议进行了研究。3.ICT设备的CANopen 控制系统的仿真设计。首先,是对ICT设备的控制系统进行研究和分析:其次,在深入了解CANopen通讯原理的基础上,提出合理的控制方案;第三,利用CANoe软件进行仿真,相关的开发软件有CANeds、ProCANopen和CANoe;最后,通过CANoe进行仿真实验。4.CANopen通用I/O模块的设计。在该模块的设计中,本人主要是负责软件部分的设计,软件程序主要分成5大模块:数字输入模块,数字输出模块,模拟输入模块,模拟输出模块以及CANopen通讯模块。这些软件模块中,CANopen通讯模块是一个重点也是一个难点。
上传时间: 2022-07-18
上传用户:qingfengchizhu
Simulation can provide a lot of information about what the system is doing. We canadd the effect of different element, like Encoder resolution, ADC sampling rate, etc and understand how does it affect the system. Another benefit is the possibility to slow down the process, to gain insight on what happens of fast systems or, vice versa, speed up slow process.Because National Instruments is a unique company in the fact the we provide a fullhardware solution couple with a full development platform, we can use this tools in very particular ways For example, it is possible to combine the LabVIEW Control Design and Simulation Module along with the FPGA module to quickly prototype a controller. One of the main benefits of this approach is that there is no need to compile the FPGA code, which allows for a quick algorithm design turnaround and debugging.
标签: pid控制
上传时间: 2022-07-20
上传用户: