A pet holder readiness evaluation model with NFT rewards and DAO oversight
![Screenshot 2024-04-18 at 11 53 23 PM](https://private-user-images.githubusercontent.com/102205131/323826579-d910433d-4a83-4b62-9ff0-00899fb5a6f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2OTQ0NDMsIm5iZiI6MTcxODY5NDE0MywicGF0aCI6Ii8xMDIyMDUxMzEvMzIzODI2NTc5LWQ5MTA0MzNkLTRhODMtNGI2Mi05ZmYwLTAwODk5ZmI1YTZmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOFQwNzAyMjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjJiOGM5MDRhOTY2MzExNGJkNzE4NTQxMjZjN2IxM2VjZWI2M2NiNWZjMDYzMTNkMmQzZDE1NDcyNDIzMzJjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Z2nt_4OUWXnAoMztWs8XHyqUPrYD7-wEPCwZuvayVwY)
More analyzing models for pets: https://github.com/HuaEdward/analyzing-models-for-pets-1.0
In the 'MathModel' folder, the maths model built for evaluating the readiness of a person to become a qualified pet owner.
Input to the code as: the specie of the pet (Cat
, Dog
, Rabbit
, Hamster
, Lizard
) + each value of the factors
![Screenshot 2024-04-15 at 8 02 13 PM](https://private-user-images.githubusercontent.com/102205131/322659667-2820d570-8ce6-41d6-8aa2-c3f750924ec0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2OTQ0NDMsIm5iZiI6MTcxODY5NDE0MywicGF0aCI6Ii8xMDIyMDUxMzEvMzIyNjU5NjY3LTI4MjBkNTcwLThjZTYtNDFkNi04YWEyLWMzZjc1MDkyNGVjMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxOFQwNzAyMjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZDg0N2JmNzBlYjcxNmViMTA3NGZhODdlOTg1YjFmNWM0MDdkMzFlYTdlMTFhMTIwNTFjYjE4ZjMxYmVlNGJjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0mzaz1Vy328DiumzJy9WOxgZzEZrFs1mv_NcERYHf8E)
Sample input: Cat 1 9 30 8 25 8 55 1 0
In the 'Contracts' foler, a smart contract is built to reward an NFT for the user who gets a score over 7000.
We use the Analytic Hierarchy Process (AHP) to determine the weight of each factor.
- Model the problem as a hierarchy.
- Perform pairwise comparisons to establish priorities.
- Calculate the relative priority weights of the criteria.
- Synthesize the judgments to get overall priorities.
- Check for inconsistencies in the judgments.
weightsC = {0.3044, 0.1806, 0.1084, 0.0941, 0.0564, 0.0564, 0.0332, 0.0332, 0.1333};
weightsD = {0.2488, 0.1544, 0.1566, 0.0908, 0.0626, 0.0659, 0.0392, 0.0271, 0.1544};
weightsH = {0.3107, 0.1337, 0.1825, 0.0713, 0.0492, 0.0930, 0.0339, 0.0239, 0.1019};
weightsR = {0.2787, 0.2053, 0.1310, 0.0510, 0.0852, 0.0708, 0.0337, 0.0276, 0.1168};
weightsL = {0.2367, 0.2778, 0.1397, 0.1087, 0.0777, 0.0501, 0.0280, 0.0194, 0.0618};
Then, we use Weighted Linear Combination (WLC).
Each criterion is assigned a weight that reflects its importance relative to the other criteria. The alternative with the highest total score is considered the best.