Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with YAML #21

Open
pietrodemarinis opened this issue May 30, 2019 · 0 comments
Open

Problems with YAML #21

pietrodemarinis opened this issue May 30, 2019 · 0 comments

Comments

@pietrodemarinis
Copy link

I am going crazy with this YAML code for file.ahp.
Online Yaml code verifier say that it's ok but it isn't!!!
Could you hint at where does the mistake lay?
Please!

I get error:
Error in load(db) :
numero magico errato del file di ripristino (il file potrebbe essere danneggiato) - dati non caricati
Inoltre: Warning message:
file ‘Vacation.ahp’ has magic number 'Versi'
Use of save versions prior to 2 is deprecated

MY CODE:
Version: 2.0

Alternatives: &alternatives
Training
ImpSeed
Transf
FarmOrg
Market

Goal:
name: ImproveAgriSust
decision-makers:
- p1: 1
preferences:
p1:
pairwise:
- [DEC, DEN, 2]
- [DEC, DES, 1/2]
- [DEN, DES, 2]
children:
DEC:
preferences:
-p1:
[RDI, DP, 9]
[RDI, APC, 7]
[RDI, RUAC, 0.1]
[RDI, LE, 6]
[RDI, AFS, 4]
[RDI, ACP, 2]
[RDI, ARP, 5]
[DP, APC, 0.3]
[DP, RUAC, 3]
[DP, LE, 8]
[DP, AFS, 0.4]
[DP, ACP, 7]
[DP, ARP, 0.3]
[APC, RUAC, 9]
[APC, LE, 9]
[APC, AFS, 0.1]
[APC, ACP, 4]
[APC, ARP, 0.2]
[RUAC, LE, 3]
[RUAC, AFS, 0.4]
[RUAC, ACP, 0.3]
[RUAC, ARP, 0.5]
[LE, AFS, 0.1]
[LE, ACP, 0.7]
[LE, ARP, 0.6]
[AFS, ACP, 0.5]
[AFS, ARP, 0.5]
[ACP, ARP, 0.4]
children:
RDI:
children: *alternatives
DP:
children: *alternatives
APC:
children: *alternatives
RUAC:
children: *alternatives
LE:
children: *alternatives
AFS:
children: *alternatives
ACP:
children: *alternatives
ARP:
children: *alternatives
DEN:
preferences:
-p1:
[RDI, DP, 1]
[RDI, APC, 2]
[RDI, RUAC, 0.1]
[RDI, LE, 0.1]
[RDI, AFS, 0.13]
[RDI, ACP, 1]
[RDI, ARP, 2]
[DP, APC, 5]
[DP, RUAC, 0.9]
[DP, LE, 0.9]
[DP, AFS, 2]
[DP, ACP, 6]
[DP, ARP, 6]
[APC, RUAC, 0.1]
[APC, LE, 0.11]
[APC, AFS, 0.13]
[APC, ACP, 2]
[APC, ARP, 1]
[RUAC, LE, 2]
[RUAC, AFS, 2]
[RUAC, ACP, 9]
[RUAC, ARP, 9]
[LE, AFS, 2]
[LE, ACP, 9]
[LE, ARP, 9]
[AFS, ACP, 9]
[AFS, ARP, 9]
[ACP, ARP, 1]
children:
RDI:
children: *alternatives
DP:
children: *alternatives
APC:
children: *alternatives
RUAC:
children: *alternatives
LE:
children: *alternatives
AFS:
children: *alternatives
ACP:
children: *alternatives
ARP:
children: *alternatives
DES:
preferences:
-p1:
[RDI, DP, 3]
[RDI, APC, 4]
[RDI, RUAC, 3]
[RDI, LE, 2]
[RDI, AFS, 2]
[RDI, ACP, 3]
[RDI, ARP, 2]
[DP, APC, 1]
[DP, RUAC, 2]
[DP, LE, 1]
[DP, AFS, 1]
[DP, ACP, 1]
[DP, ARP, 0.13]
[APC, RUAC, 2]
[APC, LE, 2]
[APC, AFS, 1]
[APC, ACP, 1]
[APC, ARP, 0.5]
[RUAC, LE, 0.5]
[RUAC, AFS, 0.33]
[RUAC, ACP, 1]
[RUAC, ARP, 0.5]
[LE, AFS, 1]
[LE, ACP, 2]
[LE, ARP, 1]
[AFS, ACP, 2]
[AFS, ARP, 1]
[ACP, ARP, 1]
children:
RDI:
children: *alternatives
DP:
children: *alternatives
APC:
children: *alternatives
RUAC:
children: *alternatives
LE:
children: *alternatives
AFS:
children: *alternatives
ACP:
children: *alternatives
ARP:
children: *alternatives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant