Format String is malformed
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
Python内容推荐
学学Python_字符串07_字典的格式化字符串
格式化字符串的时候用到字典。原文:学学Python_字符串07_字典的格式化字符串
基于 C-GAN 的风光联合出力极端场景生成方法研究(Python代码实现)
内容概要:本文针对风能和光伏发电出力的不确定性与极端波动问题,提出了一种基于条件生成对抗网络(C-GAN)的风光联合出力极端场景生成方法。通过引入气象条件等外部特征变量作为条件输入,构建C-GAN模型,有效捕捉风光出力的概率分布特性,生成具有高保真度和多样性的极端出力场景。研究详细阐述了网络结构设计、损失函数构建、训练流程及评价指标,并基于Python实现了完整算法代码,验证了该方法在生成极端场景方面的优越性能。结果表明,该方法能够为电力系统规划、运行风险评估与优化调度提供更为全面和可靠的场景支撑,尤其在应对罕见但高影响的极端事件方面具有显著优势。; 适合人群:具备一定机器学习基础和电力系统专业知识的科研人员、研究生,以及从事新能源并网、电力系统安全分析、综合能源系统优化等领域的工程技术人员。; 使用场景及目标:①解决传统场景生成方法难以有效刻画风光出力极端事件的问题;②为电力系统安全稳定分析、备用容量配置、极端风险评估生成包含尾部风险的典型场景集;③深入理解和实践C-GAN在能源时间序列数据生成任务中的建模思路与技术细节。; 阅读建议:此资源以Python代码实现为核心,强调理论与实践深度融合,建议读者在掌握GAN基本原理的基础上,结合文中的模型设计与代码实现进行复现、调试与参数调优,重点关注条件变量的融入方式、训练稳定性控制策略及生成场景的质量评估方法,以充分掌握该技术的应用精髓。
基于去噪概率扩散模型(DDPM)的电动汽车充电行为场景生成(Python代码实现)
内容概要:本文介绍了基于去噪概率扩散模型(DDPM)的电动汽车充电行为场景生成方法,并提供了完整的Python代码实现。该方法通过学习真实电动汽车充电数据的复杂分布特征,利用DDPM这一先进的深度生成模型,逐步从噪声中恢复出具有高度真实感的充电行为序列,从而生成统计合理且多样性丰富的充电场景。该技术克服了传统场景生成方法在处理高维、非线性及时序依赖数据方面的局限性,能够精确捕捉充电起始时间、持续时长、充电电量及负荷曲线的内在规律。生成的场景数据可广泛应用于电力系统规划、配电网承载能力评估、负荷预测以及电动汽车与电网互动(如V2G)策略的研究中。; 适合人群:具备一定Python编程基础和机器学习知识,从事电力系统、交通电气化、智能电网、负荷预测、能源系统规划等相关领域研究的科研人员、工程师及研究生。; 使用场景及目标:①为大规模电动汽车接入下的配电网影响分析提供高精度、多样化的输入场景,支撑系统脆弱性评估;②用于研究不同充电模式(如无序充电、有序充电、车网互动V2G)对电网日负荷曲线、峰谷差及局部过载风险的影响;③支撑包含电动汽车的综合能源系统、微电网的优化调度、风险评估与投资决策。; 阅读建议:读者应重点理解DDPM模型的核心思想、其在时序数据生成中的独特优势,以及如何将生成的虚拟场景与具体的电力系统工程问题相结合进行分析。建议结合所提供的代码进行动手实践,通过调整超参数、训练数据集来观察模型性能变化,从而深入掌握该技术的应用精髓。
TICQClient Version
//// TICQClient Version 1.18f// (C) Alex Demchenko(alex@ritlabs.com)// http://www.cobans.net////-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ Legend: ][ + Added feature ][ * Improved/changed feature ][ - Bug fixed (I hope) ]16-September-2002, Version 1.18f (fix release)[+] Added .manifest file in Example project for better WinXP GUI compatability[-] Fixed SMS reply receiving (Thx! to Nick Anikin)[-] Fixed OnConnectionRefused event, it wasn‘t called when connection with ICQ server was lost (Thx! to Mironov Serghei)[-] Application containing TTimer on the same form as TICQClient generated Access Violation error (Thx! to Simon de James)07-September-2002, Version 1.18[!] Sorry that HTTP proxy support wasn‘t added in this release, it‘s impossible due to blocking sockets architecture, but ICQ HTTP PROXY protocol has been discovered and parsed (for developers: see MySocket.pas)[!] Added file receiving see ‘File Transfers‘ in Help.chm[+] Added RequestInfoShort procedure & OnUserInfoShort event for requesting the short info about user[+] Added LastError: String property in TICQClient[+] Added ICQClientVer_Major, ICQClientVer_Minor constants in ICQWorks.pas[*] Some work-speed improvements[*] Improved info request/response procedures & events[*] Improved white pages (more compatible with ICQ2002a)[*] Improved sockets: data sending should work better now (especially with badly internet connection)[*] Improved TICQClient timeout timer[*] Contacts & contacts requests can be sent/received also through server now, see SendContacts, RequestContacts functions[*] OnPasswordChanged events moved to OnInfoChanged event.[-] Finally fixed the bug which doesn‘t allow to close the application having TICQClient while Windows restarting/shutting down[-] Fixed bug: users where not added to invisible list while receiving server side lists in Example (bug in Example) (Thx! to Attila)[-] Fixed age field in OnUserFound event when searching white pages[-] Fixed disconnection bug in direct connection sessions (server doesn‘t handled disconnection events)[-] Fixed access violation on receiving OnInfoBackGround events with different count in Pasts & Affiliations lists (bug in Example)[-] Fixed UTF8ToStrSmart function, now it should convert UNICODE strings from ICQ server nearly perfectly ;) (Thx! to Alexander Vaga)[-] Fixed TMySock access violation when destroying the object after socket reported OnConnectError[-] Lots of access violation fixes, which appear while using heavily TICQClient as a non-visual object17-August-2002, Version 1.17[!] Added server side list upload support (you can even add users into SSL without authorization!), see ‘Server Side Lists‘ in Help.chm[!] Added Miranda-icq database support in TICQDb component, see DbType property in Help.chm[+] Added ignore list support, see Server Side Lists in Help.chm[+] Added OnURLFound event in TICQDb[+] Added OnChangePasswordError event, called when password cannot be changed[+] Added new ERR_LOGIN type in OnError event, for more info see Help.chm file - OnError event[+] Added SetAuthorization procedure setting ‘authorization required‘ and ‘webaware flag‘, see SetAuthorization procedure, OnAuthorizationChangedOk event[+] ICQ databases can be open now while ICQ is running[*] Added authorize parameter in OnUserFound event[-] Fixed internet address resolving, which caused connection errors on some Win98 systems[-] Received SMS messages were not converted from UTF-8 format[-] Fixed devision by zero in TICQDb component10-August-2002, Version 1.16[+] Added SMS reply event, now you can receive messages sent through cellular, see OnSMSReply event (Thx! to Olivier)[+] Added connection timeout support, see ConnectionTimeout property[+] Added OnError event, now you can understand why you‘ve been disconnected :)[+] Answers on info changing, see OnInfoChanged event[+] An option disabling direct connections, see property DisableDirectConnections[*] Direct connections are estabilished now through proxy (if any)[*] Removed thread layer while resolving IPs in SOCKS proxies[*] MySocket.pas improvements, fixed potential Access Violation bugs[*] TProxyType moved to ICQWorks.pas[-] Fixed SetSelfInfoMore procedure: languges were broken[-] Fixed message ACKs[-] Proxy packets were dumped in OnPktParse event[-] SendSMS procedure didn‘t convert Text to UTF-8 format[-] Client should disconnect now on receiving malformed packets06-August-2002, Version 1.15[!] SOCKS4, SOCKS5 proxy support, only experimental now, please test it[+] Added keep alive packets support, see procedure SendKeepAlive[+] Added OnOnlineInfo event providing advanced info about users going online: Internal & External IPs, Port, Protocol version.[-] Messages from Mac clients were not received (Thx! to AV(T))[-] Fixed range checking errors in TICQClient component (Thx! to Klimashev I.A.)[-] Fixed unicode strings in server side contact list group names[-] Fixed icon displaying in UserSearch form of the Example project[-] Some help fixes and modifications16-July-2002, Version 1.11[!] Added TICQDb example. See DbConverter.[+] Impoved SMS support, see OnSMSAck & OnSMSRefused events.[-] TICQDb: .idx and .dat files were not closed after importing[-] Offline messages were not received (Thx to Sergey Sokolov)15-July-2002, Version 1.1[!] Importing messages, urls, contacts(with their info) & owner‘s info (including password!) from ICQ2000x, ICQ2001x, ICQ2002a databases. See TICQDb component.[!] SMS messages are working :) (Thx! to Nick Barrett)[*] property Pasword changed to property Password (sorry for spelling)[*] New help file! (.chm format)[*] Removed AddContactVisible, AddContactInvisible functions, use VisibleList.Add, InvisibleList.Add instead.[-] Fixed bug with Visible/Invisible lists: after adding a user to your vis./inv. lists you was disconnected from server. (Thx! to Karloz R.)[-] Sorry that new Russian help file isn‘t included in this release, I have‘t got time for it bacause of going in the summer hollidays :)12-July-2002, Version 1.0 (Release!)[+] Added contacts request, see RequestContacts function[+] Added acks on every direct packet, see OnDirectPacketAck event.[-] Russian help didn‘t contain some functions & events[-] Main example should work now in Delphi5 & other compatability issues10-July-2002, Version 0.9[!] Direct connections are supported now![!] OnMessageRecv & OnOfflineMsgRecv are divided now into OnMessageRecv/OnURLRecv & OnOfflineMsgRecv/OnOfflineURLRecv, so the MsgType param isn‘t used now[+] Sending/Receiving messages directly to client[+] Sending/Receiving contacts[+] Receiving contacts requests[+] Improved MySocket.pas, now it works safier and doesn‘t use any threads05-July-2002, Version 0.8[+] Added Russian translation of Help.html. See HelpRus.html.[+] Added password changing procedure. See ChangePassword procedure & OnChangePasswordOk event.[+] Added unregistering the existing UIN. See UnregisterUIN procedure and OnUnregisterBadPassword, OnUnregisterOk events.[-] UNICODE(UTF-8) names in the server side contact lists were not converted to ASCII.[-] Packet dumper now parses more packets on channels 1 & 405-July-2002, Version 0.7[+] Now you can register new UIN from TICQClient! See RegisterNewUIN procedure and OnNewUINRegistered, OnNewUINRefused events.[+] Auto-away messages support. See RequestAwayMsg procedure, OnAutoMsgResponse event and AutoAwayMessage property.[-] Since v0.6 ‘White Pages‘ did not work properly (Thx! to Ozan Kulahci)[-] Login event was called too early, so search & some other functions were not working immideatly after login (Thx! to Ozan Kulahci)04-July-2002, Version 0.6[!] Removed Connecting property & OnConnect, OnConnectError, OnDisconnect events. I think there‘s no way of using them. OnConnectionFailed now called when you loose connection with server or you cannot connect to it.[+] Added advanced message support(SendMessageAdvanced procedure, OnAdvancedMsgAck event). Now you can receive confirmations on messages you‘ve sent![+] Added SendSMS(const Destination, Text: String) procedure for sending sms messages, please, test it and mail me(email above) about results, country where I live isn‘t supported by the ICQ sms gateway :)[+] Added new items to languages constant array[-] Example wasn‘t showing messages received in RTF format02-July-2002, Version 0.5[+] Added visible/invisible list support: look at AddContactVisible, AddContactInvisible functions and VisibleList, InvisibleList TStringLists in Help.html file[+] Updated main Example, now it receives server lists, saves contact list to disk and adds users from the search dialog[+] Added new VerySimple example with just logging and sending/receiving messages. This example shows easy of use of the TICQClient component.[+] Changed AddContact(UIN: LongWord) procedute to AddContact(UIN: LongWord): Boolean function, it returns True when user is added to the list and False if it‘s in the list already[+] Added RemoveContact procedure, which removes UIN from user‘s contact list while you are online[-] Fix in AddContact procedure it was sending the entire contact list, instead of new UIN[-] User‘s info StringLists(Interests, Affiliations, etc) in Example having the same group names caused errors: the first group and value were repeated a few times instead of showing the different values with the same groups01-July-2002, Version 0.4[!] Server side contact list is supported now![+] Added SendURL(UIN: LongWord; const URL, Description: String) procedure for sending URLs[+] Added SetSelfInfoGeneral, SetSelfInfoMore, SetSelfInfoAbout procedures for uploading the self info[-] Fixed SearchByName procedure, now it works correctly30-June-2002, Version 0.3[+] Added ICQClient.dcr icon, thx to Quique![+] Added OnUserInfoBackground event[-] Fix with user‘s gender in ‘White Pages‘[-] A few other small fixes28-June-2002, Version 0.2[+] Added white pages & random search[+] Update to PacketDump viewer (PktDump.pas), not it parses CLI_META and SRV_META packets[-] Fix in SRV_METAINTEREST, interests were badly parsed[-] Some fixes with LNTS strings26-June-2002, Version 0.1[!] First public release
Sakemail
SakEmail components Copyright ?1997 - 2003 Sergio A. Kessler web: http://groups.yahoo.com/group/sakemail/To subscribe to the mailing list of sakemail, just go tohttp://groups.yahoo.com/group/sakemail/History:0.9 - First released version0.9.1b -Fixed when a mail server reply on the connection with more than one line0.9.2b - I forget to return a value in functions retrieveHeader/Message =) and fixed it. Some minor bugs that I don‘t remember fixed.- Added MIME-compliant base64 support (not for use by now). Added examples.0.9.2.1b- Fixed a bug when send a mail and the first line disappear (thanks to Arun)- Now, you could do MySMTP.MsgTo := ‘a@doma.com; b@domb.com;c@domc.com‘; the spaces before/after semicolon doesn‘t matter (I hope ;)).0.9.3b- Many changes, I added a SakMsg component that make send binary attachments a snap. But have one problem, if you send as attach a file > 20 Kb, it doesn‘t work (I don‘t know why, maybe a problem of sockets). Developed with a version 2.0b of WSockets and D3.0.9.3.1b- Changed the POP.login to a function that return the number of new msgs.- Added the event OnRetrieveProgress on the SakPOP, and fixed the example, sorry =)- Minor changes to the code.1.0- Developed with WSockets 1.2 POP.Login now return a boolean depending id the user is authorized, and POP.Init return the number of new msgs.1.01- Fixed a bug with a bounced mail.1.02- Minor bugs fixed (some variants of boundary)14/10/971.1.0- Warning: WSockets1.2 have some bugs that result in bad attachments. So I decided to use the sockets of Delphi 3 founded in D3 c/s D3.01 pro and D3.01 c/s. Now all seems to work fine and much more smooth. And of course the interface of SakEmail hasn‘t changed.26/10/971.2.0- Added the Reply-To field to TSakMsg comp. Now you must use ‘,‘ when you want to send the msg. to multiple recipients, i.e.: ‘a@doma.com, b@domb.com,c@domc.com‘ This change is done for better compatibility with other emails clients.- Better formatting of the field Date of TSakMsg. Some changes to the code.17/11/971.2.1- Now, all searches are made in case-insensitive, it could prevent some unexpected responses (no one reported, but...). Some changes to the code (again).20/11/971.2.2- Some bugs fixed. (Thanks to Serge Wagener from .lu)24/11/971.2.3- Added the field ‘MIME-Version: 1.0‘. It seems that is necessary :)25/11/971.3.0- Added compatibility with SCO and VAX servers. Fixed a minor bug with the boundary.- Change the generator of the message id.- Added the field MessageId and InReplyTo to the TSakMsg component.- Added the field In-Reply-To that is added to the message generated when it is <> ‘‘.30/11/971.3.1- Almost rewrote the parsing code. Now is more easy for you if you want hack/modify the code.- Better treatment of emails with html inside.15/12/971.4- Added support for UUCoded attachments.- Added a small delay when sending the email, seems that some servers can‘t deglut the info too fast, causing problems with sockets buffers and leading to crash the client machine, I don‘t know if is a Borland bug or Microsoft bug. (thanks to Don Higgins).19/12/971.4.1- Fixed a bug that send double ‘<‘ and ‘>‘ (ie. <<ser@dom.com>>) when the full user name is used. Check the new SMTP demo. Thanks to Serge Wagener for locate this bug, track it down and send me the fix.2/2/981.5.0- Added the Canceled property to TSakPOP and to TSakSMTP. Due to this addition now RetrieveAllMessages is a function that return the number of msgs. retrieved and SendMessage is a boolean function (maybe someone has pressed the cancel btn).- Fixed a bug when the subject field is too large.9/2/981.5.1- Fixed a bug with a message within a message (recursive msgs).18/2/981.5.2- Fixed a bug what happens when after the field ‘To:‘ appear a blank line(Thanks to Osvaldo Fillia). Fixed a bug when sending email to more than two address (the separator is still ‘,‘).9/3/981.6.0- Sometimes the filenames of an attachment contain invalid chars making very dificult to open a TSaveDialog (you have noted this ?), now SakEmail deletes the invalid chars.- Applied a patch from Matjaz Bravc, that resolve the problem of localized dates, letting you choose (in design time) if you want localized dates (NOT recommended) or standards dates (english) via the LocalizedDates boolean property in the TSakSMTP comp. Thanks also to Serge Dosyukov for sending me a fix.- Also I applied another patch of Gregor Duchalski that cure a bug with PChar when this unit is used under NT. - It seems that some machines need more delay when sendig a msg (see previous posting 19/12/97), thanks to Matjaz Bravc.- I discover a bug in the transparency code, it is fixed now. Did you see the benefits of Open Source Software ? :)26/3/981.6.1- Added a FUNCFileName private variable to manage the complete path of the attached file. I receive problems reports with this, it work now ?.- Reduced the line sleep to 30 (tell me if this value doesn‘t work for you).27/4/981.7.0- Fixed a memory leak, thanks to Don Higgins.- Moved the string esErrorInFormatOfMsg to a property of SakPOP.- Because some people need to use IP addresses instead of Host names, I‘ve added a new property IPAddress to SakPOP and SakSMTP. If both are filled, then the Host name will be used, thanks to Roger F. Reghin for reporting this. The side effect for this is that YOUR app must check if the host is a host name or a IP address, in my app I remove the periods and try to convert the result to a float (long integers don‘t work, but float accept chars ‘e‘) if it doesn‘t work I assume that is a host name (someone has a better and simple idea ?).- Added the property FileStream to the class TAtachedFile and the procedure SaveToStream, this was done by Brian Sheperd- The address separator (in the TO: field) is ‘,‘ and ‘;‘ now (before it was ‘,‘ only).1.7.1- Roger F. Reghin has sended me a pair of nice patches that resolve in a good behavior when the destination address is something like "Roger Reghin" <rreghin@hotmail.com> and some servers says that they couldn‘t relay that mail, etc. Also Roger has made the IPAddress property obsolete (do not use it, use Host instead), SakEmail will resolve the host properly no matter if it is a host name or a IP address. So in the next version I will remove the IPAddress property. Thank you, Roger.1.8.0- Well, it seems that I made a mistake, I investigated the previous behavior and it is a fault of the SMTP (RFC 821), so I fixed it.- The IPAddress property has been removed, use Host. Goeran Strehl (asem) has sended me a patch that fix a memory leak and one problem with the object inspector and the Text property of a SakMsg. Dmitry Bondarenko say that some servers do not send the msg size after the RETR command, so he fix that issuing a LIST n command first (work nicely).- Added the property CC (Carbon Copy) to the SakMsg object.1.8.1- Added the property ReturnPath to the SakMsg comp. Minor changes to the scanning code for the filename of attachments.1.8.2- Fixed a bug with the filename of attachments (thanks to Taufer Pavel Ing.).- Added the function IsIPAddress from hou yg (the actual code don‘t work if the server is 265.net :) Fixed a minor bug with html pages like attachments. Some fucking email server return a bounded message declaring the boundary like ‘boundary = ‘ and not ‘boundary=‘ wich is clear in the RFC, fixed.1.8.3- A obscure bug was found by HuangYeJun from china, in the RetrieveHeaders function if the retrieved text was larger than 1024 bytes and the crlf.crlf fall in the middle of two chunks, the function is blocked. I don‘t use this function, btw.1.8.3.1- Just cleaned up a bit the FindUUAtachs function. Not bug or enhancements release. Serge Wagener put me to work >:|1.8.4- Dmitry Bondarenko (again) has found a bug in wich I do not respect the RFC, wich say that replys from the SMTP server could be multi-line, and the previous version just manage as far as two lines. He also send me a nice patch, so the bug is fixed.- Craig Manley added a ExtraHeaders property, please, use with care, it‘s just not valid to put inside it whatever thing.- The CC header was not being added to the headers that were being sent, so Craig fixed it.- Warning: I‘ve put try/except in the TSakPOP.Connect and TSMTP.Connect function around the line FSocket.Open, so you will need to write something like: myPOP.Connect; if POPError then ... in your code, the old way was: try myPOP.Connect; except ..... end; If you are strongly opossed to this change, drop me a line and tell me why (I‘m in doubts).1.8.5- Greg Nixon added the priority property. The default priority for each msg created will be prNormal, so you don‘t need to change your code any bit.1.8.6- Ulf Sturegren has added D4 compatibility, not many changes to the source (one letter), but he found the error.- Hou yg has sent to me a revisited IsIPAddress function, so I put the newer function in, infortunely my reply to him doesn‘t want to go.1.8.7- Ok, I discovered a weird bug, some old emailers (navigator 2) does not format the message in multipart mode if people send an attach, without writing any text and with no MIME settings. Fixed. This could be serious, I recommend upgrading.1.8.8- A small fix with the CC field. Some stupid mail servers put tabs in some fields (CC:, TO:) when they want to make a new line, the correct is to put at least a space in the beginning of the line, added a little code to "fix" that.1.8.9- Some ‘moderns‘ pop3 servers doesn‘t support the LAST command, so I‘ve added a little code to cope with this and added a boolean property ServerSupportLastCmd. See TSakPOP.Init for more details. Reported by Jan Najvarek.1.9.0- Kaufman Alex has added two properties to the SakMsg object, the ContentType and the Headers property, that should be self explaining (I modified a little the code he sended me, btw).1.9.1- I rewrote and greatly simplified the code that deal with the multiple address in the TO: field and remove some possible bugs in it.1.9.2- Alex discovered and fix a bug when a file attached is not enclosed between quotes, resulting in the filename without the first and last character.1.9.3- Better detection of the boundary in multipart messages. Fixed a bug when the attached file is empty.1.9.4- Chris G黱ther send me *lots* of memory leaks fixes, very good job, Chris. - Some weird PGP messages are now processed well.- Yang Qiandong from china fixed a compiler hint and a warning.- Modified TSakSMTP.FReceiveTextFromSocket as suggested by Greg Nixon.- Dmitry Bondarenko send me a patch that fixes some issues with the LAST command (that some servers don‘t implement) and other patch that fixes a problem when servers add spare words in the tail of the answer.- Some minor changes suggested by Matthew Vincent.- Support for _big_ attachments files (me).- Make the code more modular and simple (still is not very modular).1.10.0- Move some stuff to a sak_util unit.- Support for quoted-printable msgs, thanks to Chris G黱ther.- Fix the BCC field.- New property sakMsg.ContentTransferEncoding.2.0.0- Major reestructure of the files and the source code.- Simplifyied sakPOP3.pas a _lot_- Support encapsulated messages (message/rfc822).- Nested multipart messages are processed fine.- Attachs with quoted-printable are processed fine.- Many bugs fixes.2.0.1- A fiasco, sorry.2.0.2- Fixed a bug in the sak_CleanUpAddress.- Do the rigth job if the ContentType is ‘plain/text‘ and the encoding is base64.- Redone sak_ExtractAddress and sak_ExtractAlias.- New ‘Sender‘ property in SakMsg (normally not used, so do not use it, unless you know what you are doing) ‘Thanks‘ to Alex Kaufman for this.2.0.3- A *severe* bug with multiple addresses was fixed.2.0.4- Fixed bogus Message-number (Message-id is the correct) Thanks to Peter Honan- Added SizeInBytes property to the SakMsg component. (petition of Alex Kaufman)- Fixed a minor bug in TSakPOP.RetrieveHeaders. Fix from Alex.- Added RetrieveMessageOnlyHeaders and - RetrieveAllMessagesOnlyHeaders.2.0.5- Fix when the mail server reply is like <cr><cr><lf> (two cr).- Fix function IsIpAddress.- Both fixes by Alessandro Rossi.2.0.6- Fix a bug in the sak_Base64Decode function when the data to decode is null (I found it in the hard way).- Andy Charalambous make it sure you can send more than one email without disconnecting and connecting again.- And Chris ‘Memory Hunter‘ G黱ther killed some memory leaks (again).2.2.0- the f* sleep line that was bothering us for years is gone, gone, gone. Thanks to Syed Ahmed.- a getUIDL method of SakPOP. Thanks to Alex Kaufman.- a UIDL property on SakMsg. (me)- a SakPOP.GetUIDLsOnRetrieve boolean property (default false) (me)- change some ‘Exception.Create()‘ to ‘raise Exception.Create()‘ Thanks to Anton Saburov.- change SakPOP.Init from function to procedure (me)- new SakPOP.NewMsgsCount property (me)- changed SakPOP.Password to SakPOP.UserPassword (me)- changed SakPOP.ErrorInFormatOfMsg to SakPOP.StrErrorInFormatOfMsg- OnLookup event on SakPOP and SakSMTP. Thanks to Syed Ahmed.- OnConnecting event on SakPOP and SakSMTP (me).- OnReceiveTextFromSocket event on SakPOP and SakSMTP (me). (mostly for debug)- OnSendTextToSocket event on SakPOP and SakSMTP (me). (mostly for debug)- Headers are retrieved without the mail body (ugly bug, fix from Alex Kaufman)2.4.0- I‘ve revamped TSakMsg, many funcionality from SakPOP was moved to SakMsg, where it belongs.- Now SakMsg has a RawMail property wich you may find useful, now you can do: SakMsg1.RawMail.LoadFromFile(‘(uidl).mail‘); SakMsg1.ParseMsg; or SakMsg1.RawMail.LoadFromStream( myStream); SakMsg1.ParseMsg; or SakMsg1.RawMail.SaveToFile( ‘(uidl).mail‘); etc, etc...- Added a property TSakMsg.ClearRawMailAfterParse for memory saving.- the return of the f* sleep line (it causes freezes on winsock 1.1 systems like win95, win98 has winsock 2 so there is no problem if you remove the line)- lost of the DecodeProgess events :( (sorry, I don‘t know how to fit this events on the new SakMsg)2.6.0- the sleep() line is dead, it will never come back. Sending an email is a pleasure now.- SakMsg has a TextEncoding (8Bit, Base64) property, I think this will be useful to people with others charset than iso-8859-1- the base64 routines have been rewritten, they are more OO and faster (they are now in SakMIME.pas).- cosmetic changes all over the place.2.6.1- simplifyed ParseMsg2 a lot, it work better now.- speed up the search for uucoded attachs (the previous search was very dumb)- fixed bug Msg.SizeInBytes always 0- added a couple of Application.ProcessMessages to make the app more responsive.2.6.2- moved some functions from sak_utils to SakMIME.- make const parameters all over the place.- fix the bug that introduces a final crlf in quoted-printable attachs.- fix a division by zero if attached file is 0 bytes long, fixed by Peter Kollanyi.2.6.3- fix a rare bug when the header of a email (more probably a encapsulated one) has first line/s in blank. Easy and innocuous bug.2.6.4- fix the bug that insert the attachs of type text/* on the body of the email.- change the Smtp.SendMessage for Smtp.SendTheMessage to avoid a BCBuilder problem. Both problems reported by Andreas Franzen. SendMessage is still there, but it‘s now deprecated, I will remove it in the future.2.6.5- moved the ParseMsg activation from SakPOP to SakMsg (where it belong), this means that after setting the RawMail property of SakMsg, this does a ParseMsg automatically. before: SakMsg1.RawMail := ... SakMsg1.ParseMsg; now: SakMsg1.RawMail := ... hope I‘m not breaking too much code out there ... :)- some changes in the way attachments are processed (now the html part is separated correctly and images within the html are recognized)- RetrieveMessage() and RetrieveMessageOnlyHeaders() now take an additional parameter, a TSakMsg var, so people can change some parameters before parsing, see the source in SakPOP3.pas (the old way is still supported, but they will be removed in the future)- bug fixes that I do not remember.3.0.0- moved code around.- removed deprecated functions (I told you about this)- new SakAttFile unit.- Base64Encode( AttFile), Base64Decode( AttFile), UUDecode( AttFile) has been moved to the TAtachedFile object, so you can do AttFile.Base64Encode, AttFile.Base64Decode, etc- SakSMTP have lost EncodeStart, EncodeProgess and EncodeEnd events as a consequence of the previous change.- SakPOP.Canceled and SakSMTP.Canceled properties have been made read-only and SakPOP.Cancel and SakSMTP.Cancel procedures (or methods) have been added.- add a SakMsg.FillRawMail method that will fill the RawMail property with a rfc822 message based on the properties of SakMsg.- changed SakSMTP.Quit & SakPOP.Quit to Disconnect- deleted TAttachedFile.FileStream (redundant), use BodyBin- removed the function sak_getTempFileName (as it should no be trusted) use function sak_GetTempPath- the new SakIMAP component !, this make a pleasure to work with incoming emails (as you can have folders, etc). Note: the IMAP component has only been tested with the Uni. of Washington server, but it should work with any *STANDARD COMPLIANT* server. Anyways, the code of this component is very simple, so if you have problems, a look in the source code can enligthen you.3.0.1- fixed a brown paper type of bug.3.0.2- support the case where attachs do not come from files (Lars Karlslund)- minor bugfix in UUDecode function (Lars Karlslund)- if the SakMsg.Username is empty, do a VRFY command at the smtp server to try to get the full user name (sergio)- function TSakIMAP.GetFolderList (Peter Nagel)- function TSakIMAP.GetHierarchyDelim (Peter Nagel)- frustrated intent (ie. commented out) to remove memory leaks in POP, SMTP & IMAP destroy functions (Ronald Moesbergen)3.0.3- actually create (and free) the FolderList in sakIMAP (Neculau Andrei)- try to send the FQDM to the HELO command in SMTP (sergio)- commented out the VRFY command in SakSMTP, and cut the from address in the From field (in SakMsg), so if the username is empty, the SMTP server rewrite the from address in a complete way, with username & full address (sergio)- fix a minor bug in TBase64DecodingStream.Write function (Lars Karlslund)3.4.0- many, many improvements to the IMAP component by Peter Honan (I applied the patch with minor modifications, mainly to respect delphi coding standard, taking out the overloading, the selectFolder function was overcomplicated, etc)- FAQ updated (me)3.4.1- minimize the chance for two temporal messages stored on disk to collide (can be hit in previous versions if you run multiple instances of retrieveMessage at the same time)- FAQ updated.3.4.2- a new sak_CleanUpAddresses() implementation, by Knut Baardsen- better handling for temporal messages, suggested by Andrew- many improvements (including ACL -Access Control List) to the IMAP component by James Chaplin3.4.3- reverted to the old sak_CleanUpAddresses() implementation Knut‘s one is almost rigth, but don‘t let us use addresses without domains- add Headers.Clear before filling headers, by "Antonio Carlos Ribeiro Faria" <consultor@cys.com.br>3.5.0- add TSakMsg.LoadFromTextFile from Oak Chantosa- big jumbo mambo patch from James Chaplin first patch: 1) Operation timeout - OperationTimeout timeout for non-responding receive operations. 2) Forced abend - ForceAbend method that will disconnect and reset state. 3) Optional folder lists - AvFolderList and AvSUBFolderList provide alternatives to FolderList and SUBFolderList that ensure the lists do not contain inacessible folders ( flagged by the server ). 4) Folder name fix - Provided a function to "fix" folder names before submission. Currently it fixes names containing spaces. second patch: 1) Capability - Ask for server capabilities/extensions. 2) Noop - Basic noop command - updates message counts as well - preferred alternative to status. 3) Status - Explicit status command - generally useful for status of a non-selected mailbox. 4) Fetch - Retrieve message data. 5) FetchBody - Retrieve the body of the message. 6) ExamineFolder - A read-only select command. 7) CloseSelectedFolder - Close the currently selected folder. 8) Idle - RFC2177 extension - not implemented on very many servers. 9) Search - Search based on RFC2066 criteria. 10) UIDSearch - Search based on RFC2066 criteria - results are in UID form. 11) UIDStoreFlags - Store message flags based on UID. 12) UIDFetch - Fetch message data by UID. 13) UIDCopyMessageToFolder - Copy a message by UID. 14) Authenticate - Basic framework. Only plain authentication extension implemented. 15) CloseOnError - A new property that allows the user to turn off the default behaviour of disconnecting from the server when an IMAP error is received 16) Namespace - RFC2342 Namespace query command. 17) ListFullHierarchy - Property which allows a switch between "*" ( default ) or "%" as the wilcard for default folder/list methods. 18) List - Explicit list command in case it is needed. third patch: 1) fix problem with imapd 2001a, reported by Holger Mauermann. 2) remove all warnings.3.5.1- revert change to the base64 encoding routine.3.5.2- changes from James Chaplin: 1) TSakIMAP will now properly process non-numeric UIDs for messages ( there was a sak_StrWord2Int transform being used before - which always produced a 0 value for non-numeric UIDs ). 2) TSakIMAP.RetrieveMessageExt ( private method ) was modified to provide a retrieval by either MsgID or UID. 3) TSakIMAP.RetrieveMessageByUID was modified to use the slightly more efficient TSakIMAP.RetrieveMessageExt(UID) method specified in 2) above. I also made an update to the SakMIME.pas unit. The changes that were implemented are: 1) sak_Base64Encode - a basic Base64 encoder. String input and string output with the option for CRLF splitting. 2) sak_Base64Decode - a basic Base64 decoder. String input and string output with a control for CRLF interpretation. 3) sak_Base64Verify - a very basic Base64 string verifier.3.5.3- robustify and code cleanups by Paul Vernon.3.5.4- access violation fix by Paul Vernon.3.5.5- go back to good old trusty 3.5.23.5.6- this time, all the cleanup & fixes from Paul Vernon seems to work well.3.6.0- Paul Vernon latest minor fixes- added basic SMTP authentication, by Delfi and Antonio Carlos Ribeiro Faria3.6.1- fix a mayor bug when sending to many addresses (by sergio)3.7.0- add full support for html mails, by Paul Vernon. (The TAttachedFile now has an extra boolean property called embedded. This property lets you use the syntax <img src=DownloadFiles2"CID@myimg.gif"> in your HTML mails)- fix a weird typo for BCC fields- add Content-ID, by alejandro Castro- fix "_" characters in subject, regression fix.- cleanups all around, by Paul Vernon.- SMTP example updated to cope with html emails.**warning** from this version, the html part of mails will not be stored as attachments by default, if you want this behavior, you just do something like: aSakMsg := TSakMsg.Create( self); aSakMsg.HTMLAsAttachment := true; ...3.7.1- fix TSakMsg.PopulateList (Jalin)3.7.2 (codenamed "melissa")- fixed a bug when the Populatelist procedure got re-written in sakMsg. It wasn‘t populating the SendTo field if there was only one e-mail address... (Paul Vernon)3.7.3 - Congratulations to Sergio on the addition to his family. This release was made by Paul Vernon who has temporarily taken over the release functions for the SakMail components whilst Sergio spends time AFK!- The 3.7.2 bug fix added blank entries to the address lists. The PopulateList procedure has been re-written again to hopefully cope with any type of e-mail address formatting.- The SMTP example noted in 3.7.0 actually shipped with this release!3.7.4- Bugfix for detecting UUEncoded mails correctly. Previous versions processed MIME mails with the value ‘begin xyz‘ if it appeared at the beginning of a line as a UUEncoded mail when they should not have.- POP and SMTP connect procedures are now functions. Existing code is unaffected. However, you can now use the following code if (sakPOP.Connect) then begin end;- POP gracefully quits if it receives an error now by calling Disconnect correctly.3.7.5- Further code to improve identification of UUEncoded mails. Essentially looking for the end as well as the beginning to ensure that it is correct.- Code optimisation of certain UUEncoded mail id functions.- Fix to ensure that the body of a mail that is UUEncoded is not lost.- MIME-Version string introduced into TsakMsg component to help with UUEncoded mail identification.- SizeInBytes property altered to read private variable using a function. If the private variable is 0, the function reads the length of the FRawMail.Text property.- Fix to make sure that the filename is not overwritten by a blank value when parsing mail-headers.3.7.6- Fixed list index out of bounds error.- Added POP3 RSET call TSakPOP.Reset.3.7.7- Altered SizeInBytes and Octets values to return server-side size when d/l headers only and use actual size once the entire message is downloaded.- Fixed a bug in GetBasicHeaders where To and CC fields could be mishandled if the mail headers were formed in a particular way.4.0.0 beta- All methods are now wrapped in classes. sak_util is now included for backwards compatibility only.- Several changes to make sakMail thread safe including the introduction of Mutexes which are cross process safe. Critical sections were an option however, although mutexes are a little slower, they are much more effective when you aren‘t sure how the code is going to be deployed...- Made several changes to the way connections are tracked, now making better use of the underlying Delphi components own properties and functions.- Several bug fixes included from solutions posted on mailing lists. Including change to datetime function to respect local time separator. There are more including one that Adem re-raised.- Removed almost all pointers as per Adems suggestion. Makes for neater code.- Hopefully backwards compatibility is kept. This is one of the objectives of the excersice although, internally, the components no longer use any of the non-object based methods. Also some of the non-object based methods actually have been re-written to create an object use the instance of the original method and then destroy the object again. This introduces a minor overhead however, because the objects are discreet, the trade is for much better memory usage and greater thread safety.- Introduced an include file to define compiler directives. Currently there are two directives. One defines whether to use the VCL or not, the other defines whether or not to use the FastStrings components. - With the intoduction of the Include file, this allows the development of code that is optional for users. One of these such changed is the use of the FastStrings base64 decoder. If you install the FastStrings components and turn on the compiler directive, you should have no functional changes however, the base64 decoder routines should have a much higher performance rating. Tests clock in at over 2000% faster attachment decoding on a P4 1.8GHz machine. (1.2Mb file 1686mS native sak Base64 Decoder, 79mS using FastStrings!)- This version is being released as a beta as the changes are pretty drastic. If the code is deemed to be stable and backwards compatible then it will be re-released as v4.0.1 with no changes.4.0.1 beta- Fixed an issue where Range Checking highlighted that the Attachment b64 decode routine raise a Range Error if the line that was to be decoded was empty. i.e. ‘‘.- Introduced a compiler directive to turn off range checking in the sakMIME procedure TBase64DecodingStream.Write to make sure that it runs correctly as Range Checking causes issues in this function.4.0.2 beta- Changed MailDateToDateTime function to the one provided by DengZhaoHui with a few modifications as even though it has better date processing than the original it caused EConvertErrors with some non-rfc dates.- Added the compiler directive to allow the inclusion of MD5 components from the DCPCrypt suite of encryption components. This allows the components to do APOP and SMTP AUTH functions as specified in RFCs 2095, 2104, 2449 and 2554. {UseDCP} ***** NOTE: These functions are experimental as although they are RFC compliant, they have not been tested against a secure mail server yet... *****- Using EurekaLog during load testing of the POP mail component, found and fixed several AV‘s in sakMSG, sakMIME and sakPOP. Mainly simple mistakes that required re-ordering of code or more checks before trying to manipulate data.- Altered the sockets code to be more stable with some servers. The previous implementation was totally incompatible with SendMail NT v3.0.2.- Fix added to compensate for incorrect operation of Connected property in some versions of Delphi.- Altered GetMultiLineFieldBody as per Adems suggestion. Also took some of Adems code and added it to GetFieldValueFromLine as the escape characters can appear in single line headers as well as multi-line ones.- TClientSocket is deprecated in Delphi 7. This may be the next large change in the sakEmail components. - Updated distribution to include more RFC‘s regarding the message format, POP and IMAP and hashing functions for CRAM mechanisms.- Fixed the handling of redirected mails as created by Eudora.- Force PopulateList to clear the list before populating it again.- Created a Delphi 6 package file.4.0.3 - Fixed AUTHSMTP buffer initialisation error. (Dmitry G. Kozhinov and Gabi Slonto)- Improved identification of servers that do not support the UIDL command. A small overhead is intorduced on servers that do support the command and have several mails to download but the feature allows better interaction with those servers that do not support UIDL.- Priority is now reported correctly when an e-mail is being decoded rather than only being used when sending an e-mail.4.0.4- Fixed an issue with a malformed header in a mail sent from MS Word through an Exchange server- Added a couple of try...finally blocks to the sakIMAP component.- Altered the sakIMAP components connected function to mirror the more accurate sakPOP method.- Consolidated all compiler directives into sakDef.inc- Added versioning compiler directives to allow the compilation of sakemail under Delphi 4.- General tidying of code. 4.0.5- Created a Delphi 7 package- Added properties to the IMAP component to allow read access to the LocalAddr and LocalHost socket properties.- Bugfix to sakMsg PopulateList function where a comma separated list did not contain any spaces- Access violation in sakPOP component due to incorrect use of free,freeandnil and compiler directives4.0.6- Added several features to the IMAP components.- Tidied up SMTP authentication routines (Improved use of MD5 for authentication using DCP components)- Included capability to send messages without an SMTP server (using Indy DNS components for MX lookups)- Bugfix in message parsing to stop a recursion loop due to a malformed mail.4.0.7- Memory leaks found by Amos and Paul regarding the sakMsg and sakPOP units respectively.- Bug fixes to attachment save code including stripping out invalid .. sequences from filenames- Improved the GetConnectedState method to check against the RemoteHost value on the Socket.- Updated POP example to be more responsive when downloading mail. Fixed a memory leak.Don‘t forget to subscribe to the mailing list (see the web pages at http://groups.yahoo.com/group/sakemail/)
多微电网基于粒子群优化算法的面向配电网的多微电网协调运行与优化(Matlab代码实现)
【多微电网】基于粒子群优化算法的面向配电网的多微电网协调运行与优化(Matlab代码实现)内容概要:本文围绕“基于粒子群优化算法的面向配电网的多微电网协调运行与优化”展开,重点介绍了利用粒子群优化(PSO)算法对多微电网系统在配电网环境下的协调运行进行建模与优化的方法。文中详细阐述了多微电网系统的结构特征、各分布式能源(如光伏、储能、电动汽车等)的出力模型及其在不同渗透率下的互动关系,并构建了以经济性、稳定性与电能质量为目标的多目标优化模型。通过Matlab编程实现算法求解,验证了所提方法在提升系统运行效率、降低运行成本及增强配电网承载能力方面的有效性。研究还探讨了需求响应、共享储能机制以及源-网-荷-储协同调度对优化效果的影响。; 适合人群:具备电力系统、自动化或相关专业背景,熟悉Matlab编程与优化算法,从事新能源、微电网、智能配电网等领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①应用于多微电网系统在复杂配电网中的协调调度仿真与优化设计;②为高比例可再生能源接入下的配电网承载能力评估与运行策略制定提供技术支持;③作为科研复现、论文写作与项目开发的参考案例。; 阅读建议:建议读者结合文中提到的Matlab代码与仿真模型,配合实际算例进行调试与验证,重点关注粒子群算法的参数设置与多目标优化的权衡机制,并延伸学习其他智能优化算法在电力系统中的应用。
ntp离线安装rpm包
ntp离线安装rpm包
full-stack-fastapi-template(TypeScript)
「full-stack-fastapi-template(TypeScript)」是一套TypeScript项目完整源码,涵盖容器化、Web开发等核心内容。代码结构清晰、注释完整,包含全部源代码文件,下载解压即可运行使用,适合学习参考、课程设计、毕业设计与二次开发。
springboot+vue健康饮食管理平台(代码+数据库+LW)
摘 要 随着互联网技术与健康饮食理念的普及,大众对科学饮食、个性化营养管理、健康经验交流的需求持续提升。健康饮食管理平台以个性化饮食服务与社区互动为核心,为用户提供健康档案管理、智能饮食规划、食谱查询分享、食材营养参考、健康资讯获取及社区交流等一站式服务,助力用户养成科学饮食习惯,同时为平台运营提供高效管理能力。 本平台采用SpringBoot作为后端开发框架,Vue作为前端框架,结合前后端分离架构实现高效数据交互;系统分为普通用户与管理员两大角色,功能边界清晰、操作流程简洁。普通用户可完成登录注册、健康档案维护、个人信息管理、食谱搜索与分享、饮食计划生成、食材营养查询、社区互动、健康资讯阅读及 AI 智能客服咨询等操作;管理员可实现用户数据管理、食材信息维护、营养数据更新、社区内容审核、健康资讯发布等后台管理功能。平台通过标准化接口与稳定的数据支撑,为用户提供流畅、便捷、个性化的健康饮食管理体验,具备良好的实用性与推广价值。 关键词:SpringBoot框架,Vue框架,健康饮食,饮食管理,个性化推荐
R语言SCINature绘图模板SCI科研绘图-manteltest
R语言SCINature绘图模板SCI科研绘图--mantel test
deepseek-harness-离线安装包(苹果电脑系统,安装直接使用,不需要配置node.js环境)
deepseek-harness-离线安装包(苹果电脑系统,安装直接使用,不需要配置node.js环境)
DeepEval-Skills
人工智能软硬件验证平台
AI全环节软硬件验证平台核心工具之一,已适配多款国内外主流 AI 芯片,覆盖 NLP、CV、多模态、科学计算、语音等 10 余个评测子场景,兼容主流智能体工具,支持开发者开箱即用,有效降低AI芯片、大模型软硬件评测门槛。技能库还将助力验证平台构建五大专职智能体,构建多智能体协作机制,显著提升评测效率并降低成本。
考虑阶梯碳交易-绿证联合机制的虚拟电厂多时间尺度优化调度(Matlab代码实现)
内容概要:本文围绕“考虑阶梯碳交易-绿证联合机制的虚拟电厂多时间尺度优化调度”主题,提出了一种基于Matlab代码实现的综合优化调度模型。该模型创新性地融合了阶梯式碳交易机制与绿色证书(绿证)交易机制,针对包含风电、光伏、储能、电动汽车等多种分布式能源的虚拟电厂系统,实现了日前、日内到实时等多时间尺度的协调优化。通过构建以经济成本最小化、碳排放惩罚最小化和绿证收益最大化为目标的联合优化函数,并结合详细的系统约束与求解算法,模型在保障电力系统安全稳定运行的前提下,显著提升了虚拟电厂的综合经济效益与环境效益。文中详述了数学建模过程、求解方法,并通过Matlab编程进行了仿真验证,充分证明了所提机制在降低碳排放强度、提高绿证消纳率及增强系统经济性方面的优越性。; 适合人群:具备电力系统、能源经济学、优化理论等相关基础知识,熟练掌握Matlab编程,且正在从事新能源并网、虚拟电厂运营、碳市场机制、绿色金融或综合能源系统优化等领域研究的研究生、高校科研人员及能源行业工程技术人员。; 使用场景及目标:①深入研究虚拟电厂在阶梯碳价与绿证交易双重市场机制下的最优运行策略与商业模式;②掌握并实现多能源耦合系统的多时间尺度协同优化调度方法;③学习如何利用Matlab工具进行复杂的能源系统建模、仿真与优化分析。; 阅读建议:读者应结合所提供的Matlab代码,系统性地理解模型的构建逻辑、变量定义、约束条件与求解流程。建议严格按照文档的目录结构循序渐进地学习,并通过网盘获取完整的代码与测试数据集,以便进行仿真复现、结果验证和在此基础上的二次开发与创新。
考虑阶梯碳交易 - 绿证联合机制的虚拟电厂多时间尺度优化调度研究(Matlab代码实现)
内容概要:本文研究了考虑阶梯碳交易与绿证联合机制下的虚拟电厂多时间尺度优化调度问题,通过构建精细化的数学模型并采用Matlab进行仿真代码实现,系统探讨了虚拟电厂在电力市场、碳交易市场和绿色证书市场多重耦合机制下的协同优化运行策略。研究设计了日前-日内两阶段滚动优化框架,综合调度风电、光伏、储能、可控负荷等多种分布式能源资源,充分刻画阶梯碳交易机制对碳排放成本的非线性激励效应以及绿证交易对可再生能源消纳的引导作用,实现了经济性、低碳性与运行可靠性的协调优化。模型有效反映了碳-绿证联合政策对虚拟电厂调度决策的影响机理,算例仿真验证了该机制在降低系统碳排放强度、提升新能源消纳比例和增强运营商综合收益方面的积极作用。; 适合人群:电力系统、能源经济、综合能源系统及相关领域的科研人员,具备一定优化建模能力与Matlab编程基础的研究生或工程技术人员。; 使用场景及目标:①研究虚拟电厂在多重市场环境下的优化调度策略;②探索阶梯碳交易与绿证机制对能源系统低碳转型的激励效果;③为综合能源系统参与市场化运营提供建模与仿真支持; 阅读建议:读者应重点关注模型构建中对阶梯碳价和绿证约束的数学表达,结合Matlab代码理解多时间尺度滚动优化的实现逻辑,并可通过修改参数进行情景对比分析以深化对机制设计的理解。
复现计及电动汽车充电站接入的配电网承载能力评估与优化(Matlab代码实现)
内容概要:本文针对电动汽车充电站接入背景下配电网承载能力的评估与优化问题,提出了一套系统化的评估体系与优化方法。研究构建了涵盖电动汽车、分布式光伏及SVC无功补偿等多种新型元件的配电网基础模型,并从设备安全、负荷平稳性、电能质量与系统效率四大维度建立了多指标评价体系。在此基础上,融合熵权法与模糊综合评价法,构建双层承载能力评分模型,实现对不同电动汽车渗透率场景下配电网承载能力的量化评估。通过IEEE 33节点系统的仿真算例,分析了不同渗透率对系统各项指标的影响规律,并开展了指标灵敏度分析,验证了所提模型的科学性与有效性。; 适合人群:具备电力系统基础知识,从事配电网规划、新能源接入、电动汽车与电网互动等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①用于评估高比例电动汽车接入对配电网运行安全性与电能质量的影响;②为充电站规划布局、有序充电策略制定及配电网扩容改造提供决策依据;③支撑含多类型分布式资源的主动配电网优化运行研究。; 阅读建议:建议读者结合Matlab代码实现部分,复现文中算例仿真过程,深入理解熵权法与模糊综合评价的编程实现细节,并尝试调整参数或引入新指标进行扩展研究,以增强实际应用能力。
复现基于联合虚拟储能系统的海岛微电网协同优化策略(Matlab代码实现)
内容概要:本文提出了一种基于“空调-电动汽车”联合虚拟储能系统的海岛微电网协同优化策略,并通过Matlab代码实现仿真验证。该策略充分利用温控负荷(如空调)与电动汽车的可调度潜力,构建联合虚拟储能系统,以提升海岛微电网对高比例可再生能源的消纳能力,增强系统运行的经济性与稳定性。研究构建了多时间尺度的协同优化调度模型,综合考虑电力供需平衡、设备运行约束、用户舒适度及储能特性等多重因素,采用先进的优化算法求解最小化运行成本的目标函数,实现了对微电网能量流的精细化管理和灵活调控。此外,文档还提供了丰富的相关研究方向和技术资源,涵盖电力系统优化、智能算法、路径规划、信号处理等多个领域,展现了坚实的技术支撑体系。; 适合人群:具备一定电力系统基础知识和Matlab编程能力的高校研究生、科研人员以及从事微电网、综合能源系统、需求响应等相关领域的工程技术人员。; 使用场景及目标:①应用于海岛或偏远地区独立微电网的能量管理与优化调度研究;②为“空调-电动汽车”联合虚拟储能系统的建模、控制与调度提供技术参考;③支持高渗透率可再生能源接入下的电力系统灵活性提升与稳定运行方案设计;④辅助开展需求响应、多时间尺度优化、协同控制等前沿课题的学术研究与工程项目开发。; 阅读建议:此资源以Matlab代码实现为核心,强调理论建模与仿真实践紧密结合,建议读者在学习过程中结合文中提及的相关算法(如粒子群优化、NSGA-II等),动手运行并调试代码,深入理解优化模型的构建逻辑、求解流程及参数设置,同时可拓展至其他综合能源系统场景中进行对比分析与创新应用。
【硕士论文复现】基于需求侧响应的配电网供电能力综合评估研究创新改进(Matlab代码实现)
内容概要:本文围绕“基于需求侧响应的配电网供电能力综合评估”这一主题,复现并创新改进了一项硕士论文研究。通过构建涵盖一次设备安全、负荷平稳性、电能质量和系统效率等维度的多指标评价体系,提出了一种结合熵权法与模糊综合评价的双层量化评估模型,用于科学评估高比例电动汽车接入背景下配电网的承载能力。研究以Matlab为工具实现算法仿真,通过设定不同电动汽车渗透率的典型场景进行算例分析,验证了模型在灵敏度与有效性方面的优越性能,揭示了需求侧资源参与对提升电网承载力的重要作用。同时,研究进一步融合构网型储能、虚拟电厂等新兴元素,增强了模型在新型电力系统环境下的实用性与前瞻性。; 适合人群:具备电力系统基础理论知识和Matlab编程能力,从事新能源并网、智能配电网、需求侧管理、综合能源系统等方向的科研人员、工程技术人员及研究生。; 使用场景及目标:①服务于高校与科研机构在配电网承载力评估、需求侧响应建模等课题的教学与研究工作;②为电力公司应对高比例电动汽车接入带来的电网压力,提供规划评估与优化调度的技术支撑;③辅助硕博学位论文撰写、科研项目申报及关键技术方案论证中的模型构建与仿真验证。; 阅读建议:建议读者结合所提供的Matlab代码与完整资料包,依照文档目录循序渐进地学习,重点理解多维指标体系的设计逻辑、熵权法赋权与模糊评价的实现流程,并关注不同渗透率场景下的仿真结果对比分析,进而可拓展应用于构网型储能配置、多微网协同优化等相关前沿领域,全面提升对现代配电网综合评估能力的理解与实践水平。
Delphi 13.1控件之TRichViewFMXTrialSetupDelphi24.2-D12.exe.zip
Delphi 13.1控件之TRichViewFMXTrialSetupDelphi24.2_D12.exe.zip
YOLO算法公共场合人员佩戴口罩目标检测数据集-3423张-包含 VOC 和 Yolo 格式标签-支持多种算法训练模型.zip
页面底部可查看数据集可视化效果; 该数据集可直接接入YOLOv5s/v5m/v5l、YOLOv8n/v8s/v8m、YOLOv10n/v10s、yolo11等轻量级至中型骨干网络进行端到端训练,支持从零训练(from scratch)与迁移学习(fine-tuning)两种模式;包含voc格式和yolo格式标签可直接使用
软件工程基于Java+Vue的健身App设计:健身打卡与课程管理系统的模型实现与关键技术分析 项目介绍 基于java+vue的健身打卡与课程管理App设计与实现(含模型描述及部分示例代码)
内容概要:本文介绍了基于Java与Vue开发的健身打卡与课程管理App的设计与实现,涵盖系统整体架构、核心业务模型及关键技术实现。项目从前端表现层到后端服务层采用前后端分离架构,通过Spring Boot提供RESTful接口,Vue实现响应式界面,结合MySQL持久化数据与Redis缓存提升性能。重点实现了会员管理、课程发布、健身打卡、权限控制、个性化推荐和连续打卡统计等核心功能,并针对身份认证、数据一致性、推荐算法等难点提出解决方案,如使用JWT实现无状态登录、BCrypt加密保障密码安全、数据库唯一索引与事务保障打卡幂等性,以及基于余弦相似度的课程推荐模型。系统支持多角色协作,形成集训练记录、数据分析与运营决策于一体的数字化健身管理闭环。 适合人群:具备Java和Vue基础的全栈开发者、计算机相关专业学生及健身类应用创业者,尤其适合1-3年经验的技术人员参考学习。 使用场景及目标:①学习如何在实际项目中集成JWT认证与BCrypt加密实现安全登录;②掌握健身类App中打卡幂等性、连续打卡统计、课程推荐算法等核心模块的设计与编码;③理解前后端分离架构下多角色权限控制与数据一致性保障机制;④为开发类似健康管理、在线教育等需行为激励与个性化推荐的应用提供参考模板。 阅读建议:此资源不仅包含完整的技术模型描述与代码示例,还深入剖析了业务需求与技术选型之间的关联,建议读者结合代码实践,重点关注权限校验、事务控制与算法实现细节,并可在本地部署调试以加深理解。
最新推荐




