G - New Year and Days

本文介绍了一个简单的算法题目,主要内容是如何计算一只北极熊Limak在2016年按照特定规律(每周固定一天或每月固定一天)储存糖果的总数。文章通过输入不同日期格式来计算出相应的糖果数量。

点击打开链接



Today is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.

Limak is a little polar bear. He enjoyed this year a lot. Now, he is so eager to the coming year 2016.

Limak wants to prove how responsible a bear he is. He is going to regularly save candies for the entire year 2016! He considers various saving plans. He can save one candy either on some fixed day of the week or on some fixed day of the month.

Limak chose one particular plan. He isn't sure how many candies he will save in the 2016 with his plan. Please, calculate it and tell him.

Input

The only line of the input is in one of the following two formats:

  • "x of week" where x (1 ≤ x ≤ 7) denotes the day of the week. The 1-st day is Monday and the 7-th one is Sunday.
  • "x of month" where x (1 ≤ x ≤ 31) denotes the day of the month.
Output

Print one integer — the number of candies Limak will save in the year 2016.

Example
Input
4 of week
Output
52
Input
30 of month
Output
11
Note

Polar bears use the Gregorian calendar. It is the most common calendar and you likely use it too. You can read about it on Wikipedia if you want to – https://en.wikipedia.org/wiki/Gregorian_calendar. The week starts with Monday.

In the first sample Limak wants to save one candy on each Thursday (the 4-th day of the week). There are 52 Thursdays in the 2016. Thus, he will save 52 candies in total.

In the second sample Limak wants to save one candy on the 30-th day of each month. There is the 30-th day in exactly 11 months in the 2016 — all months but February. It means that Limak will save 11 candies in total.



水题,细心即可!!


代码:

#include<stdio.h>
#include<string.h>
int main()
{char str[50];
gets(str);
int l=strlen(str);
if(str[l-1]=='k')
{int x=str[0]-'0';
if(x==1) printf("52");
else if(x==2) printf("52");
else if(x==3) printf("52");
else if(x==4) printf("52");
else if(x==5) printf("53");
else if(x==6) printf("53");
else if(x==7) printf("52");	
}
else if(str[l-1]=='h')
{int x;
	if(str[1]>='0')
	 x=(str[0]-'0')*10+(str[1]-'0');
	else x=str[0]-'0';
	if(x==31)
	printf("7");
	else if(x==30)
	printf("11");
	else printf("12");
}
	return  0;
}


新的报错 (base) easyai@easyaioyactnns:~/GAMIT_GLOBK/dome2$ sh_gamit -expt demo2 -d 2017 056 -orbit IGSF -noftp -dopt D ao x c > sh_gamit8.log ls: No match. rm: 无法删除 'session.info': 没有那个文件或目录 STOP FATAL Error: Stop from report_stat ls: No match. STOP FATAL Error: Stop from report_stat 这是log文件内容 sh_gamit Version 10.76 (2022/02/13) Input options -expt demo2 -d 2017 056 -orbit IGSF -noftp -dopt D ao x c -------------------------------------------------------------- Processing 2017 056 X-file series to be used is: 7 Sites extracted from sites.default to exclude from automatic station.info updating: all_sites Checking and making required directories X-files to be excluded: Checking that enough diskspace to complete run is available Using IGS final orbits - repro3 for GPS weeks 730-2237 and repro2 for GPS weeks 658-729 Checking GAMIT tables in directory: /home/easyai/GAMIT_GLOBK/dome2/tables sh_setup -yr 2017 -doy 056 -series usno -expt demo2 -apr igb14_comb.apr -upd_l -topt none EXECUTING sh_setup ~/GAMIT_GLOBK/dome2/tables ~/GAMIT_GLOBK/dome2 localeop: no Checking links: sh_links.tables -frame J2000 -year 2017 -eop usno -topt none Updating lfile. with coordinates from: igb14_comb.apr New Version merge_apr igb14_comb.apr lfile. lfile.merged 2017 056 In igb14_comb.apr there are 9532 sites, and 1188 EXTENDED entries Mapping to year 2017 DOY 056 JD 2457809.5 Not mapped if JD is 0.00 Checking to see if EOP tables are up to date sh_update_eop -series usno -jd 2457809.5000 -noftp Y -ftp_prog ftp -inv -min 7 Observations within the span of the current eop series table: usno Not attempting to get new series g-file 056/gigsg7.056 being remade Orbit file igs19376.sp3 exists in /home/easyai/GAMIT_GLOBK/dome2/igs directory, no download attempted Using existing igs19376.sp3 in igs directory to get a g-file Use SP3 accuracy code to exclude satellites Maximum fit rms for including a satellite 0.100 m sh_sp3fit -f igs19376.sp3 -gnss G -o igsg -u -d 2017 056 -m 0.100 -srp_param allpr sh_sp3fit: Using sestbl. found in /home/easyai/GAMIT_GLOBK/dome2/igs Setting srpprm = allpr for ECOMC sh_sp3fit: Generating fitted g-file for: igsg 2017 056 covering days 056 056 sh_sp3fit: gfile and sp3fit files for igsg renamed to igsg for GPS sestbl. exists--do not craeate a link STATUS :251116:1420:40.0 NGSTOT/orbits/ngstot: Started NGSTOT ver. 10.23 2024/01/2914:18 UTC (Linux) Library ver. 11.53 of 2025/01/31 22:24 UTC (Linux) STATUS :251116:1420:40.0 NGSTOT/orbits/ngstot: Reading igs19376.sp3 to write tigs19376.sp3 for GNSS = G STATUS :251116:1420:40.0 NGSTOT/orbits/ngstot: Converting CE to CM using otlcmc.dat offsets for FES2004 STATUS :251116:1420:40.0 NGSTOT/orbits/tdtrit: Successfully wrote Earth-fixed T-file 97 epochs written on T-file STATUS :251116:1420:40.0 NGSTOT/orbits/ngstot: Writing inertial T-file (Name tigs19376.sp3) STATUS :251116:1420:40.0 NGSTOT/orbits/openb: Opened print file: (Name trot.out) STATUS :251116:1420:40.0 NGSTOT/orbits/openb: Opened output T-file: (Name tigs19376.sp3) STATUS :251116:1420:40.0 NGSTOT/orbits/openb: Opened input T-file: (Name tigs1937e.sp3) STATUS :251116:1420:40.0 NGSTOT/orbits/trot: Input T-file is Earth-fixed, converting to inertial STATUS :251116:1420:40.0 NGSTOT/orbits/trot: Successfully wrote Inertial T-file: (Name tigs19376.sp3) STATUS :251116:1420:40.0 NGSTOT/orbits/gmake: Successfully wrote G-file: (Name gigs19376.sp3) STATUS :251116:1420:40.0 NGSTOT/orbits/ngstot: Normal end to NGSTOT sh_sp3fit: Creating initial ARC input file sh_sp3fit: Integrating days 056 to 056 sh_sp3fit: ARC models: : EGR08 ECOMC 900.0 75.00 GPST INERTIAL J2000 IAU0A TUME1 ANTBK 12 4 12 1 STATUS :251116:1420:40.0 ARC/aversn: Started ARC, Version 10.02 of 2025/02/06 19:21 UTC (Linux) Library ver. 11.53 of 2025/01/31 22:24 UTC (Linux) STATUS :251116:1420:40.0 ARC/read_arc_batch: Degree options Grav 12 Etide 4 Otide 12 LBODY 1 STATUS :251116:1420:40.0 ARC/filopn: Opened ocean tide table (Name otides.dat) STATUS :251116:1420:41.0 ARC/read_otides: MODEL FES2014b (Name otides.dat) WARNING:251116:1420:41.0 ARC/check_gmodels: Requested radiation-pressure model (ECOMC) differs from g-file (ECOM1) (Name gigs19376.sp3) WARNING:251116:1420:41.0 ARC/check_gmodels: Use requested model, set RAD(1)=1.0, others = 0.0 WARNING:251116:1420:41.0 ARC/check_gmodels: Requested Earth radiation-pressure model (TUME1) differs from g-file (NONE ) (Name gigs19376.sp3) WARNING:251116:1420:41.0 ARC/check_gmodels: Requested antenna thurst model (ANTBK) differs from g-file (NONE ) (Name gigs19376.sp3) STATUS :251116:1420:41.0 ARC/lib/ephred: Opened planetary ephemeris file (Name nbody) STATUS :251116:1420:41.0 ARC/lib/ephred: Opened JPL ephemeris (Name nbody) STATUS :251116:1420:41.0 ARC/arc: Integrating satellite 1 G01 63 IIF PRN 1 STATUS :251116:1420:41.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:41.0 ARC/arc: Integrating satellite 2 G02 61 IIR-B PRN 2 STATUS :251116:1420:41.0 ARC/ertorb: Antenna power for BLOCK IIR-B = 60.00 watts STATUS :251116:1420:42.0 ARC/arc: Integrating satellite 3 G03 69 IIF PRN 3 STATUS :251116:1420:42.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:42.0 ARC/arc: Integrating satellite 4 G04 49 IIR-M PRN 4 STATUS :251116:1420:42.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:42.0 ARC/arc: Integrating satellite 5 G05 50 IIR-M PRN 5 STATUS :251116:1420:42.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:43.0 ARC/arc: Integrating satellite 6 G06 67 IIF PRN 6 STATUS :251116:1420:43.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:43.0 ARC/arc: Integrating satellite 7 G07 48 IIR-M PRN 7 STATUS :251116:1420:43.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:44.0 ARC/arc: Integrating satellite 8 G08 72 IIF PRN 8 STATUS :251116:1420:44.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:44.0 ARC/arc: Integrating satellite 9 G09 68 IIF PRN 9 STATUS :251116:1420:44.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:44.0 ARC/arc: Integrating satellite 10 G10 73 IIF PRN 10 STATUS :251116:1420:44.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:45.0 ARC/arc: Integrating satellite 11 G11 46 IIR-A PRN 11 STATUS :251116:1420:45.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:45.0 ARC/arc: Integrating satellite 12 G12 58 IIR-M PRN 12 STATUS :251116:1420:45.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:45.0 ARC/arc: Integrating satellite 13 G13 43 IIR-A PRN 13 STATUS :251116:1420:45.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:46.0 ARC/arc: Integrating satellite 14 G14 41 IIR-A PRN 14 STATUS :251116:1420:46.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:46.0 ARC/arc: Integrating satellite 15 G15 55 IIR-M PRN 15 STATUS :251116:1420:46.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:47.0 ARC/arc: Integrating satellite 16 G16 56 IIR-A PRN 16 STATUS :251116:1420:47.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:47.0 ARC/arc: Integrating satellite 17 G17 53 IIR-M PRN 17 STATUS :251116:1420:47.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:47.0 ARC/arc: Integrating satellite 18 G18 54 IIR-A PRN 18 STATUS :251116:1420:47.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:48.0 ARC/arc: Integrating satellite 19 G19 59 IIR-B PRN 19 STATUS :251116:1420:48.0 ARC/ertorb: Antenna power for BLOCK IIR-B = 60.00 watts STATUS :251116:1420:48.0 ARC/arc: Integrating satellite 20 G20 51 IIR-A PRN 20 STATUS :251116:1420:48.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:49.0 ARC/arc: Integrating satellite 21 G21 45 IIR-A PRN 21 STATUS :251116:1420:49.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:49.0 ARC/arc: Integrating satellite 22 G22 47 IIR-B PRN 22 STATUS :251116:1420:49.0 ARC/ertorb: Antenna power for BLOCK IIR-B = 60.00 watts STATUS :251116:1420:49.0 ARC/arc: Integrating satellite 23 G23 60 IIR-B PRN 23 STATUS :251116:1420:49.0 ARC/ertorb: Antenna power for BLOCK IIR-B = 60.00 watts STATUS :251116:1420:50.0 ARC/arc: Integrating satellite 24 G24 65 IIF PRN 24 STATUS :251116:1420:50.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:50.0 ARC/arc: Integrating satellite 25 G25 62 IIF PRN 25 STATUS :251116:1420:50.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:51.0 ARC/arc: Integrating satellite 26 G26 71 IIF PRN 26 STATUS :251116:1420:51.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:51.0 ARC/arc: Integrating satellite 27 G27 66 IIF PRN 27 STATUS :251116:1420:51.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:51.0 ARC/arc: Integrating satellite 28 G28 44 IIR-A PRN 28 STATUS :251116:1420:51.0 ARC/ertorb: Antenna power for BLOCK IIR-A = 60.00 watts STATUS :251116:1420:52.0 ARC/arc: Integrating satellite 29 G29 57 IIR-M PRN 29 STATUS :251116:1420:52.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:52.0 ARC/arc: Integrating satellite 30 G30 64 IIF PRN 30 STATUS :251116:1420:52.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:53.0 ARC/arc: Integrating satellite 31 G31 52 IIR-M PRN 31 STATUS :251116:1420:53.0 ARC/ertorb: Antenna power for BLOCK IIR-M = 145.00 watts STATUS :251116:1420:53.0 ARC/arc: Integrating satellite 32 G32 70 IIF PRN 32 STATUS :251116:1420:53.0 ARC/ertorb: Antenna power for BLOCK IIF = 240.00 watts STATUS :251116:1420:53.0 ARC/arc: Normal stop in ARC (Name t17056.tmp) Running: orbfit orbfit.cmd.2017_056_142040 sp3fit_igsg7056 0 t17056.tmp tigs19376.sp3 STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Started ORBFIT ver. 10.23 2024/01/2914:18 UTC (Linux) Library ver. 11.53 of 2025/01/31 22:24 UTC (Linux) STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Opened T-file: (Name t17056.tmp) STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Opened T-file: (Name tigs19376.sp3) STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Running iteration: 1 STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Max orbit misfit tolerance is: 0.1000 STATUS :251116:1420:53.0 ORBFIT/orbits/orbfit: Reading T-files and forming normal equations STATUS :251116:1420:56.0 ORBFIT/orbits/norm_solve: Solving the normal equations STATUS :251116:1420:56.0 ORBFIT/orbits/norm_solve: Normal equations solve STATUS :251116:1420:56.0 ORBFIT/orbits/write_summary: Calculating residuals STATUS :251116:1420:56.0 ORBFIT/orbits/write_summary: Overall fit (rms) to external orbit = 0.00398 STATUS :251116:1420:56.0 ORBFIT/orbits/write_g: Successfully wrote G-file STATUS :251116:1420:56.0 ORBFIT/orbits/orbfit: Normal end of ORBFIT Using nav file for SV clocks /home/easyai/GAMIT_GLOBK/dome2/brdc/brdc0560.17n exists Checking for raw data with no RINEX sh_make_rinex -yr 2017 -doy 056 -rawd /home/easyai/GAMIT_GLOBK/dome2/raw -rdir /home/easyai/GAMIT_GLOBK/dome2/rinex -mdir /home/easyai/GAMIT_GLOBK/dome2/mkrinex -ndays 1 0 2017 055: No RINEX files need to be made 2017 056: No RINEX files need to be made Processing directory 056 exists ~/GAMIT_GLOBK/dome2/056 ~/GAMIT_GLOBK/dome2/igs ~/GAMIT_GLOBK/dome2 Linking rinex files from: /home/easyai/GAMIT_GLOBK/dome2/rinex sh_link_rinex -year 2017 -days 056 -ndays 1 0 -sesfo 0 0 24 0 -dir /home/easyai/GAMIT_GLOBK/dome2/rinex -minspan 0.1 Checking RINEX files on days 055 056 in directory /home/easyai/GAMIT_GLOBK/dome2/rinex Hold on Looking for rinex files which have data between: 2017/02/25 0:00 and 2017/02/25 23:59 and have a minimum span of 0.1 hrs Linking /home/easyai/GAMIT_GLOBK/dome2/rinex/lhaz0560.17o to current directory Linking /home/easyai/GAMIT_GLOBK/dome2/rinex/shao0560.17o to current directory Linking /home/easyai/GAMIT_GLOBK/dome2/rinex/urum0560.17o to current directory Linked ../ionex/igsg0560.17i to fdemo27.056 Running links.day Checking RINEX nav file, g-file, and sp3-file links Uncompressing x-files and k-files Removing existing GAMIT.[status][warning][fatal] files Running makexp,makej, and makex and checking that d-file includes all x-files sh_preproc -ydoy 2017 056 -nav brdc0560.17n -gnss G -lfreq D -expt demo2 -orbt igsg -sp3file igs19376.sp3 -jclock brdc -sint 30 -nepc 2880 -stime 0 0 -remakex C -remakek C -remakej Y -remakeg Y -xsite -xver 7 -cmdfile tmp.cmds.easyaioyactnns:25_11_16_142037 procdir is /home/easyai/GAMIT_GLOBK/dome2 control path /home/easyai/GAMIT_GLOBK/dome2/control Non-unique x-files list: Unique sorted x-files list: Excluderx: all_sites brus graz sofi ttth stinfo_excld all_sites X-file version to be used is: 7 Checking for existing x-files xf_list: 0 session.info missing or empty link: remove and recreate Finished checking x-files Check 3 RINEX files Checking if we need to update station.info from RINEX headers Using time-tag easyaioyactnns:demo2.056:142058 LIST: /home/easyai/GAMIT_GLOBK/dome2/056/tmp.1.easyaioyactnns:demo2.056:142058 Comparing: /home/easyai/GAMIT_GLOBK/dome2/tables/lfile.easyaioyactnns:demo2.056:142058 /home/easyai/GAMIT_GLOBK/dome2/tables/lfile. 0 differences Checking Rinex file sizes. Zero length files will be deleted Number of rinex file remaining to be processed into x-files is: 3 Removing the existing session.info file before running sh_makexp sh_makexp -expt demo2 -orbt igsg -sp3file igs19376.sp3 -yr 2017 -doy 056 -sess 99 -srin -nav brdc0560.17n -jclock brdc -sinfo 30 00 00 2880 -xver 7 -gnss G -lfreq D Running sh_makexp User has input new session information. Moving old session.info to: session.info.old New Session: makexp demo2 igsg G brdc0560.17n brdc igs19376.sp3 2017 056 7 '' 30 00 00 2880 STATUS :251116:1420:58.0 MAKEXP/makexp: Started MAXEXP Ver. 9.90 2020/12/15 22:57 UTC (Linu Library Ver. 11.53 of 2025/01/31 22:24 UTC (Linux) WARNING:251116:1420:58.0 MAKEXP//lib/rstnfo: Station.info entry LHAZ 2017 56 0 0 0 2017 56 23 59 30 ends early for session but may be ok for station WARNING:251116:1420:58.0 MAKEXP//lib/rstnfo: Station.info entry SHAO 2017 56 0 0 0 2017 56 23 59 30 ends early for session but may be ok for station WARNING:251116:1420:58.0 MAKEXP//lib/rstnfo: Station.info entry URUM 2017 56 0 0 0 2017 56 23 59 30 ends early for session but may be ok for station STATUS :251116:1420:58.0 MAKEXP/makexp: Normal end in Program MAKEXP Running sh_check_sess on g-file gigsg7.056 sh_check_sess: Removing any PRN's from session.info that are missing from: gigsg7.056 PRN's in session.info: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 PRN's in gigsg7.056: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Satellites written to session.info for session 056 are: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Running makej due to remake == Y makej brdc0560.17n jbrdc7.056 '' G STATUS :251116:1420:58.0 MAKEJ/makej: Started MAKEJ 10.30 2022/08/08 21:45 UTC (Linux) Library ver. 11.53 of 2025/01/31 22:24 UTC (Linux) WARNING:251116:1420:58.0 MAKEJ/makej: SP3 file not specified or not available, use the nav-file STATUS :251116:1420:58.0 MAKEJ/makej: Opened navigation file: (Name brdc0560.17n) STATUS :251116:1420:58.0 MAKEJ/makej: Opened J-file: (Name jbrdc7.056) STATUS :251116:1420:58.0 MAKEJ/j_from_e: J-File written for 32 satellites Start: 2017 55 23 59 Stop : 2017 56 23 59 STATUS :251116:1420:58.0 MAKEJ/makej: Normal end in MAKEJ Running sh_check_sess on j-file jbrdc7.056 sh_check_sess: Removing any PRN's from session.info that are missing from: jbrdc7.056 PRN's in session.info: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 PRN's in jbrdc7.056: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Satellites written to session.info for session 056 are: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Running makex: makex demo2.makex.batch 1 0 STATUS :251116:1420:58.0 MAKEX/makex: Started Makex 10.30 2022/08/08 21:45 UTC (Linux) Library ver. 11.53 of 2025/01/31 22:24 UTC (Linux) STATUS :251116:1420:58.0 MAKEX/openf: Opened: demo2.makex.infor FATAL :251116:1420:58.0 MAKEX/openf: Error opening file: demo2.makex.batch ERROR 2 WARNING d-file missing: Creating d-file with all available x-files SH_PREPROC: No zero length xfiles, 0 finite size files, Range - blocks: 2025年 11月 16日 星期日 14:20:58 CST List of Xfiles: not_globalrx brus graz sofi List of Xfiles: not_rawlst List of Xfiles: xsite List of Xfiles: not localrx Excluding exlst: xbrus|xgraz|xsofi Checking that all k-files exist Test 0 0 Running fixdrv STATUS :251116:1420:58.0 FIXDRV/fixdrv: Started v.10.55 of 2024/01/06 19:21 UTC (Linux ) FATAL :251116:1420:58.0 FIXDRV/fixdrv: GAMIT.fatal exists: FIXDRV not executed Fatal errors occured in MAKEXP, MAKEX, MAKEK or FIXDRV FATAL :251116:1420:58.0 MAKEX/openf: Error opening file: demo2.makex.batch ERROR 2 FATAL :251116:1420:58.0 FIXDRV/fixdrv: GAMIT.fatal exists: FIXDRV not executed Check the day 056 data
11-17
跟网型逆变器小干扰稳定性分析与控制策略优化研究(Simulink仿真实现)内容概要:本文围绕跟网型逆变器的小干扰稳定性展开分析,重点研究其在电力系统中的动态响应特性及控制策略优化问题。通过构建基于Simulink的仿真模型,对逆变器在不同工况下的小信号稳定性进行建模与分析,识别系统可能存在的振荡风险,并提出相应的控制优化方法以提升系统稳定性和动态性能。研究内容涵盖数学建模、稳定性判据分析、控制器设计与参数优化,并结合仿真验证所提策略的有效性,为新能源并网系统的稳定运行提供理论支持和技术参考。; 适合人群:具备电力电子、自动控制或电力系统相关背景,熟悉Matlab/Simulink仿真工具,从事新能源并网、微电网或电力系统稳定性研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 分析跟网型逆变器在弱电网条件下的小干扰稳定性问题;② 设计并优化逆变器外环与内环控制器以提升系统阻尼特性;③ 利用Simulink搭建仿真模型验证理论分析与控制策略的有效性;④ 支持科研论文撰写、课题研究或工程项目中的稳定性评估与改进。; 阅读建议:建议读者结合文中提供的Simulink仿真模型,深入理解状态空间建模、特征值分析及控制器设计过程,重点关注控制参数变化对系统极点分布的影响,并通过动手仿真加深对小干扰稳定性机理的认识。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值