alnurali / cvxstoc

Disciplined convex stochastic programming. For the cvxstoc home page, please see:
http://alnurali.github.io/cvxstoc/
31 stars 11 forks source link

ModuleNotFoundError: No module named 'cvxpy.expressions.variables' #10

Open better464 opened 3 years ago

better464 commented 3 years ago

Gentle walkthrough/ The news vendor problem

from cvxstoc import expectation, prob, CategoricalRandomVariable from cvxpy import Minimize, Problem from cvxpy.expressions.variables import Variable, NonNegative from cvxpy.transforms import partial_optimize import numpy how to. fix it? thx

zyFan68 commented 2 years ago

cvxpy.expressions.variables ——> cvx.expressions.variable