I wanted to use pyscipopt and I keep getting this error: OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Program Files\SCIPOptSuite 8.0.3;D:\softwares\scip-8.0.3\bin'
`
import pyscipopt
model = pyscipopt.Model()
# Set the solver parameters (optional)
model.setParam('presolving/maxrounds', 0) # Disable presolving
to solve the model as-is
# Define the variables
n = 3 # Number of rows
m = 4 # Number of columns
x = [[model.addVar(vtype='B', name=f'x_{i}_{j}') for j in
range(m)] for i in range(n)]
z3 = 0
for i in range(n):
for j in range(m):
f_i = ... # Define your objective coefficient f_i for
variable x_i_j
z3 += f_i * x[i][j]
model.setObjective(z3, sense='minimize')
model.optimize()
if model.getStatus() == 'optimal':
# Get the optimal solution
solution = [[model.getVal(x[i][j]) for j in range(m)] for i in
range(n)]
print('Optimal solution:')
for i in range(n):
for j in range(m):
print(f'x_{i}_{j} = {solution[i][j]}')
else:
print('No feasible solution found.')
model.freeProb()
`
f_i = 1
so I got a trivial solution, but I didn't have any errors. Are you sure you installed PySCIPOpt properly? On their README page, they warn NOT to install PySCIPOpt in the Conda base environment.