© 2026 schoolict.net (Ruwan Mangala Suraweera)
13.2 Software Agents and Multi-Agent Systemsමෘදුකාංග නියෝජිතයන් සහ බහු-නියෝජිත පද්ධති
Grade 13 A/L ICT · Lesson 1313 ශ්රේණිය A/L ICT · පාඩම 13
In this videoමේ වීඩියෝවේ
- Agents sense, decide and act with autonomy.නියෝජිතයන් ස්වයංක්රීයව ක්රියා කරයි.
- Traits: autonomy, reactivity, proactiveness, social ability.ලක්ෂණ හතර.
- MAS: many agents cooperate, coordinate or compete.MAS අන්තර්ක්රියා.
- Applications: assistants, commerce, networks, industry.යෙදුම්.
- Utility scores and votes are simple decision methods.තීරණ ක්රම.
Notesසටහන්
Syllabus 13.2. A software agent is a program that can sense its environment, decide and act with a degree of autonomy to meet goals on behalf of a user or system. Multi-agent systems (MAS) have several agents that cooperate, coordinate or compete. Applications include personal assistants, recommendation bots, trading agents, network routing helpers and industrial monitoring.විෂය නිර්දේශය 13.2. මෘදුකාංග නියෝජිතයෙකු යනු පරිසරය සංවේදනය කර, තීරණ ගෙන, පරිශීලකයෙකු හෝ පද්ධතියක් වෙනුවෙන් ඉලක්ක සපුරා ගැනීමට යම් ස්වයංක්රීයතාවකින් ක්රියා කරන වැඩසටහනකි. බහු-නියෝජිත පද්ධති (MAS) හි නියෝජිතයන් කිහිප දෙනෙකු සහයෝගය, සම්බන්ධීකරණය හෝ තරඟ කරයි. යෙදුම්: පුද්ගලික සහායකයන්, නිර්දේශ බොට්, වෙළඳ නියෝජිත, ජාල මාර්ගගත කිරීම සහ කාර්මික අධීක්ෂණය.
1. Software agents1. මෘදුකාංග නියෝජිතයන්
- Sense → decide → act loop, often continuous.සංවේදනය → තීරණය → ක්රියාව චක්රය.
- Common characteristics: autonomy, reactivity (respond to change), proactiveness (pursue goals), social ability (communicate).ලක්ෂණ: ස්වයංක්රීයතාව, ප්රතික්රියාශීලීත්වය, ප්රෝඩාශීලීත්වය, සමාජීය හැකියාව.
- May be simple rule-based or use scored utilities / learning.නීති මත හෝ උපයෝගීතා ලකුණු / ඉගෙනීම මත.
Score = 0.40×80 + 0.35×70 + 0.25×90 = 79.0.ලකුණ = 79.0.
🐍 Software-agent utility scoreමෘදුකාංග නියෝජිත උපයෝගීතා ලකුණ
w_price, w_time, w_trust = 0.4, 0.35, 0.25 s_price, s_time, s_trust = 80, 70, 90 score = round(w_price*s_price + w_time*s_time + w_trust*s_trust, 1) print("Agent score:", score)
▶ Outputප්රතිදානය
Agent score: 79.0
2. Multi-agent systems2. බහු-නියෝජිත පද්ධති
- Several agents share an environment; each has local goals or roles.නියෝජිතයන් කිහිප දෙනෙකු; එක් එක්කහුට දේශීය ඉලක්ක/භූමිකා.
- They cooperate (team), coordinate (plans/messages) or compete (markets).සහයෝගය, සම්බන්ධීකරණය හෝ තරඟය.
- Need protocols for messages, negotiation and conflict handling.පණිවිඩ, සාකච්ඡා සහ ගැටුම් ප්රොටෝකෝල.
4 ≥ 3 → decision YES.YES.
🐍 Multi-agent majority voteබහු-නියෝජිත බහුතර ඡන්දය
votes_yes, agents, thresh = 4, 5, 3 decision = "YES" if votes_yes >= thresh else "NO" print("Votes YES:", votes_yes, "/", agents) print("Decision:", decision)
▶ Outputප්රතිදානය
Votes YES: 4 / 5 Decision: YES
3. Applications of agent systems3. නියෝජිත පද්ධතිවල යෙදුම්
- Personal / chat assistants that schedule and remind.කාලසටහන් සහ මතක් කිරීමේ සහායකයන්.
- E-commerce shopping / price-watch agents.ඊ-වාණිජ්ය මිල නිරීක්ෂණ නියෝජිත.
- Network management and routing helpers.ජාල කළමනාකරණය සහ මාර්ගගත කිරීම.
- Industrial monitoring and alerting agents.කාර්මික අධීක්ෂණ සහ ඇඟවීම්.
- Simulation and games with many NPC agents.බොහෝ NPC නියෝජිත සහිත සිමියුලේෂන් / ක්රීඩා.
Key Wordsප්රධාන පද
Sample Q&Aආදර්ශ ප්රශ්න සහ පිළිතුරු
1Define a software agent.මෘදුකාංග නියෝජිතය නිර්වචනය කරන්න.
2Name four typical agent characteristics.ලක්ෂණ හතරක්.
3What is a multi-agent system?MAS යනු?
4How can agents interact in an MAS?MAS හි අන්තර්ක්රියා?
5Give three applications of agent systems.යෙදුම් තුනක්.
6Compute the sample utility score 0.40×80 + 0.35×70 + 0.25×90.උපයෝගීතා ලකුණ ගණනය කරන්න.
MCQබහුවරණ ප්රශ්න
Choose the correct answer for each question.සෑම ප්රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.
1A software agent mainlyagent
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Sense–decide–act.සංවේදනය–තීරණය–ක්රියාව.
2Autonomy means the agentauto
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Limited direct control.සීමිත සෘජු පාලනය.
3Reactivity meansreact
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Respond.ප්රතිචාර.
4A multi-agent system containsMAS
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Many agents.නියෝජිතයන් කිහිපයක්.
5Agents that share a team goal mainlycoop
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Cooperation.සහයෝගය.
6Utility score 0.40×80 + 0.35×70 + 0.25×90 equalsutil
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Weighted sum.බරිත එකතුව.
7With 4 YES votes out of 5 and threshold 3 the decision isvote
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
4≥3 → YES.YES.
8A price-watch shopping bot is an example ofshop
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
E-commerce agent.ඊ-වාණිජ්ය නියෝජිත.
9Social ability refers tosocial
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A
Communication.සන්නිවේදනය.
10Proactiveness meanspro
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Initiative.මුලපිරීම.
11Which term means: “Autonomous program that senses, decides and acts for goals”?“ඉලක්ක සඳහා සංවේදනය, තීරණය, ක්රියාව කරන ස්වයංක්රීය වැඩසටහන” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Software agent – Autonomous program that senses, decides and acts for goals.මෘදුකාංග නියෝජිතය – ඉලක්ක සඳහා සංවේදනය, තීරණය, ක්රියාව කරන ස්වයංක්රීය වැඩසටහන.
12Which term means: “Operating with limited direct control”?“සෘජු පාලනය අඩුවෙන් ක්රියා කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Autonomy – Operating with limited direct control.ස්වයංක්රීයතාව – සෘජු පාලනය අඩුවෙන් ක්රියා කිරීම.
13Which term means: “Responding to changes in the environment”?“පරිසර වෙනස්කම්වලට ප්රතිචාර දැක්වීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Reactivity – Responding to changes in the environment.ප්රතික්රියාශීලීත්වය – පරිසර වෙනස්කම්වලට ප්රතිචාර දැක්වීම.
14Which term means: “Taking initiative to pursue goals”?“ඉලක්ක ලබා ගැනීමට මුලපිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B
Proactiveness – Taking initiative to pursue goals.ප්රෝඩාශීලීත්වය – ඉලක්ක ලබා ගැනීමට මුලපිරීම.
15Which term means: “Communicating with other agents or users”?“අනෙකුත් නියෝජිතයන් හෝ පරිශීලකයන් සමඟ සන්නිවේදනය” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Social ability – Communicating with other agents or users.සමාජීය හැකියාව – අනෙකුත් නියෝජිතයන් හෝ පරිශීලකයන් සමඟ සන්නිවේදනය.
16Which term means: “System made of multiple interacting agents”?“අන්තර්ක්රියාකාරී නියෝජිතයන් කිහිප දෙනෙකුගෙන් යුත් පද්ධතිය” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Multi-agent system – System made of multiple interacting agents.බහු-නියෝජිත පද්ධතිය – අන්තර්ක්රියාකාරී නියෝජිතයන් කිහිප දෙනෙකුගෙන් යුත් පද්ධතිය.
17Which term means: “Agents working toward shared goals”?“බෙදාගත් ඉලක්ක කරා නියෝජිතයන් වැඩ කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D
Cooperation – Agents working toward shared goals.සහයෝගය – බෙදාගත් ඉලක්ක කරා නියෝජිතයන් වැඩ කිරීම.
18Which term means: “Organising actions and messages among agents”?“නියෝජිතයන් අතර ක්රියා සහ පණිවිඩ සංවිධානය” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Coordination – Organising actions and messages among agents.සම්බන්ධීකරණය – නියෝජිතයන් අතර ක්රියා සහ පණිවිඩ සංවිධානය.
19Which term means: “Agents bargaining to reach agreement”?“ගිවිසුමකට එළඹීමට නියෝජිතයන් සාකච්ඡා කිරීම” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C
Negotiation – Agents bargaining to reach agreement.සාකච්ඡාව – ගිවිසුමකට එළඹීමට නියෝජිතයන් සාකච්ඡා කිරීම.
20Which term means: “Weighted sum used to choose among options”?“විකල්ප තෝරා ගැනීමට භාවිත බරිත එකතුව” යන්නෙන් අදහස් වන පදය කුමක්ද?
✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E
Utility score – Weighted sum used to choose among options.උපයෝගීතා ලකුණ – විකල්ප තෝරා ගැනීමට භාවිත බරිත එකතුව.
MCQ answer keyMCQ පිළිතුරු
- A – Sense–decide–act.සංවේදනය–තීරණය–ක්රියාව.
- B – Limited direct control.සීමිත සෘජු පාලනය.
- A – Respond.ප්රතිචාර.
- C – Many agents.නියෝජිතයන් කිහිපයක්.
- B – Cooperation.සහයෝගය.
- D – Weighted sum.බරිත එකතුව.
- A – 4≥3 → YES.YES.
- E – E-commerce agent.ඊ-වාණිජ්ය නියෝජිත.
- A – Communication.සන්නිවේදනය.
- B – Initiative.මුලපිරීම.
- D – Software agent – Autonomous program that senses, decides and acts for goals.මෘදුකාංග නියෝජිතය – ඉලක්ක සඳහා සංවේදනය, තීරණය, ක්රියාව කරන ස්වයංක්රීය වැඩසටහන.
- E – Autonomy – Operating with limited direct control.ස්වයංක්රීයතාව – සෘජු පාලනය අඩුවෙන් ක්රියා කිරීම.
- E – Reactivity – Responding to changes in the environment.ප්රතික්රියාශීලීත්වය – පරිසර වෙනස්කම්වලට ප්රතිචාර දැක්වීම.
- B – Proactiveness – Taking initiative to pursue goals.ප්රෝඩාශීලීත්වය – ඉලක්ක ලබා ගැනීමට මුලපිරීම.
- D – Social ability – Communicating with other agents or users.සමාජීය හැකියාව – අනෙකුත් නියෝජිතයන් හෝ පරිශීලකයන් සමඟ සන්නිවේදනය.
- C – Multi-agent system – System made of multiple interacting agents.බහු-නියෝජිත පද්ධතිය – අන්තර්ක්රියාකාරී නියෝජිතයන් කිහිප දෙනෙකුගෙන් යුත් පද්ධතිය.
- D – Cooperation – Agents working toward shared goals.සහයෝගය – බෙදාගත් ඉලක්ක කරා නියෝජිතයන් වැඩ කිරීම.
- C – Coordination – Organising actions and messages among agents.සම්බන්ධීකරණය – නියෝජිතයන් අතර ක්රියා සහ පණිවිඩ සංවිධානය.
- C – Negotiation – Agents bargaining to reach agreement.සාකච්ඡාව – ගිවිසුමකට එළඹීමට නියෝජිතයන් සාකච්ඡා කිරීම.
- E – Utility score – Weighted sum used to choose among options.උපයෝගීතා ලකුණ – විකල්ප තෝරා ගැනීමට භාවිත බරිත එකතුව.
Structured Questionsව්යුහගත ප්රශ්න
1Define a software agent and list four characteristics.නිර්වචනය සහ ලක්ෂණ. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
2Explain multi-agent systems and how agents may interact.MAS. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
3Describe three applications of agent systems.යෙදුම් තුනක්. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
4Calculate the utility score for weights 0.40, 0.35, 0.25 and scores 80, 70, 90.ගණනය. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
5Using votes YES=4, agents=5, threshold=3, state the group decision and why.ඡන්ද තීරණය. (2 marksලකුණු 2)
Show model answerආදර්ශ පිළිතුර පෙන්වන්න
🎮 Game🎮 ක්රීඩා
Summary & Downloadsසාරාංශය සහ බාගත කිරීම්
Key pointsප්රධාන කරුණු
- Agents sense, decide and act with autonomy.නියෝජිතයන් ස්වයංක්රීයව ක්රියා කරයි.
- Traits: autonomy, reactivity, proactiveness, social ability.ලක්ෂණ හතර.
- MAS: many agents cooperate, coordinate or compete.MAS අන්තර්ක්රියා.
- Applications: assistants, commerce, networks, industry.යෙදුම්.
- Utility scores and votes are simple decision methods.තීරණ ක්රම.
