yasserfarouk / negmas Goto Github PK
View Code? Open in Web Editor NEWNegotiation Multi-Agent System (A negotiation library designed for situated negotiations within business-like simulations)
License: Other
Negotiation Multi-Agent System (A negotiation library designed for situated negotiations within business-like simulations)
License: Other
Line 1249 in 5e3fb60
call init function of monitor at the step 0, not step function
monitor.step(self) -> monitor.init(self)
Describe the bug
Github workflow fails with
urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>
Downloading: http://www.yasserm.com/scml/geniusbridge.jar
Rerunning it manually fixes it.
To Reproduce
Steps to reproduce the behavior:
Commit and Push any update
Expected behavior
Pass all the CI/CD pipelines
Screenshots
I am attaching the logs
Sir, Thanks for developing this excellent library with good documentation.
I would like to know
(a) what are some of the other business areas where this negotiation agents paradigm can be used (I mean other than the typical factory or supply chain process ). For instance, can this be used for financial portfolio optimization for example as a model, a seller offers to construct financial portfolio for the buyer with a certain monetary return value and risk where as the buyer expects the seller to construct a low risk portfolio with a high return over a certain tenure. ?
(b) Can this approach be used to solve operations research problems like route planning or optimization?
(c) How does Negmas' approach differ from typical constraint based optimization methods?
Would be great if you can share your thoughts and inputs. Thank you in advance.
Hello,
I'd like to extend the anac2019_std tournament deadline and for that purpose, set total_time_out to 72000, but it appears that it still considers the default parameter 7200 and the tournament finishes in two hours, I've found that anac_2019_config_generator in scml.utils always assigns total_time_out to 7200 which may be potentially the cause of the bug.
Describe the bug
There are some bugs about logging.
To Reproduce
Run this script
from negmas import Outcome, MechanismState, ResponseType
from scml import SCML2023OneShotWorld, GreedySyncAgent
from scml.oneshot import OneShotAgent
class MyAgent(OneShotAgent):
def init(self):
super().init()
self.awi.logdebug_agent("agent!")
self.awi.logdebug("world!")
def propose(self, negotiator_id: str, state: MechanismState) -> Outcome:
return tuple([1, 1, 1])
def respond(
self, negotiator_id: str, state: MechanismState, offer: Outcome
) -> ResponseType:
return ResponseType.ACCEPT_OFFER
world = SCML2023OneShotWorld(
**SCML2023OneShotWorld.generate(
agent_types=[MyAgent] * 2,
agent_processes=[0, 1],
n_steps=3,
n_processes=2,
name="test",
)
)
world.run()
Expected behavior
"agent!"
is logged in ~/negmas/logs/test/_agent_logs/[email protected]
and [email protected]
~/negmas/logs/test/log.txt
actual behaviour
"agent!"
is not logged in any log files.[email protected]
and [email protected]
have logs as same as ~/negmas/logs/test/log.txt
2023-04-04 21:54:36,439 - DEBUG - 0/3 [0.00%]: world!
2023-04-04 21:54:36,439 - DEBUG - 0/3 [0.00%]: world!
2023-04-04 21:54:36,439 - INFO - 0/3 [0.00%]: 0 Negotiations/4 Agents
2023-04-04 21:54:36,440 - DEBUG - 0/3 [0.00%]: 01My@1 requested to buy 1 to 00My@0 q: (1, 10), u: (15, 16), t: (0, 0)
...
(log.txt
)
2023-04-04 21:54:36,437 - INFO - 0/3 [0.00%]: test: World Created
2023-04-04 21:54:36,438 - INFO - 0/3 [0.00%]: 00My@0 joined
2023-04-04 21:54:36,438 - INFO - 0/3 [0.00%]: 01My@1 joined
2023-04-04 21:54:36,438 - INFO - 0/3 [0.00%]: SELLER joined
2023-04-04 21:54:36,438 - INFO - 0/3 [0.00%]: BUYER joined
2023-04-04 21:54:36,439 - DEBUG - 0/3 [0.00%]: world!
2023-04-04 21:54:36,439 - DEBUG - 0/3 [0.00%]: world!
2023-04-04 21:54:36,439 - INFO - 0/3 [0.00%]: 0 Negotiations/4 Agents
2023-04-04 21:54:36,440 - DEBUG - 0/3 [0.00%]: 01My@1 requested to buy 1 to 00My@0 q: (1, 10), u: (15, 16), t: (0, 0)
Desktop (please complete the following information):
Additional context
I think negmas.helpers.logging.create_loggers()
(here) has some problems.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.