i solve my optimiziation problems whit pyomo and the cbc-solver. Now i try to print the terminal output/solution to a file:
import pandas as pd
from pyomo.opt import SolverFactory
from model import *
import numpy
import matplotlib.pyplot as plt
opt = SolverFactory('cbc')
opt.options['solution'] = 'output.txt'
opt.options['ratioGap'] = 0.02
opt.options['seconds'] = 3600
The solver option 'solution' will not work:
No match for /output.txt - ? for list of commands
I also get the info: Coin:solu ** Current model not valid
Can you help therefor?
Thanks & Greetings Capa