Hello,
I am new to using the API/AMPL interface with any of the programming languages and I am trying to go through an example using R. Below is the link:
However, when I try to solve the example problem the system is unable to invoke the MINOS solver, see below. The AMPL program that I have access to has CPLEX solver and not MINOS.
So the question is: Is it possible to change the solver from MINOS to CPLEX in R Studio?
Can you advise on another method to setup CPLEX as the default solver?
library(rAMPL)
ampl <- new(AMPL)
# Interpret the two files
ampl$read("models/diet/diet.mod")
ampl$readData("models/diet/diet.dat")
# Solve
ampl$solve()
Cannot invoke minos: no such program.
Objective is: 0
Increased costs of beef and ham.
Cannot invoke minos: no such program.
New objective value: 0
Updated all costs.
Cannot invoke minos: no such program.
New objective value: 0
index0 Buy.val
1 BEEF 0
2 CHK 0
3 FISH 0
4 HAM 0
5 MCH 0
6 MTL 0
7 SPG 0
8 TUR 0
index0 X100.Buy.j...Buy.j..ub.
1 BEEF 0
2 CHK 0
3 FISH 0
4 HAM 0
5 MCH 0
6 MTL 0
7 SPG 0
8 TUR 0