Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about set-cover

Read more about set-cover

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - set-cover

AttributeError: 'LpAffineExpression' object has no attribute 'solve', Error in Pullp

I'm trying to implement a problem a basis problem os Set covering with python, but pulp gives me all the time the error: AttributeError: 'LpAffineExpression' object has no attribute 'solve' This is wh...
test-img

jopelines

python

pulp

set-cover

Votes: 0

Answers: 1

Latest Answer

You are overwriting the modelo variable when defining the objective, so it's no longer a pulp.LpProblem. Use modelo += lp.lpSum(x[j] for j in J) instead. Note the += instead of the =. Alternatively,...
test-img

joni

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved