Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
1 answer
65 views

This is a Python code segment for solving an optimal power flow problem: if self.ini_state: solver.read(self.pb_path[0]) # Problem parameters solver.param['BaseMVA'] = 1 ...
Jeff Ju's user avatar
  • 23
0 votes
1 answer
117 views

I am wondering if it is possible, or if anyone has any experience with, compiling the amplpy optimization package with pyinstaller into an exe. The amplpy package github page is here As a test case, I ...
1 vote
1 answer
678 views

I'm trying to use amplpy to link a python script to a ampl model, and the real desire is use a script to generate some parameters, and use the ampl to find the optimal values to some variables. Worth ...
0 votes
2 answers
131 views

I have two sets in Pyomo, the first one is G=/GD1,GD2,GD3/, And the second one is N=/N1,N2,N3,...,N32,N33/. Naturally they have symbolic representation here for the sake of simplicity. I would like ...
1 vote
1 answer
431 views

I am new in AMPL and Python and I am using amplpy to run an AMPL model, using lpopt solver. I need to get the output result of the solver in a way that I can act over it, i.e. I need to know if the ...
matrj's user avatar
  • 21
1 vote
1 answer
60 views

I am using amplpy to access AMPL from my python. I want my dat file to not be in plain text. Is it possible? I cannot find any api to do it
user903772's user avatar
  • 1,570
4 votes
2 answers
1k views

I have recently installed Amplpy for python 3.6.5 (win 32 bit), but I am facing the following issue: Please make sure that the AMPL folder is in the system search path, or specify the path via: ...
Poulad's user avatar
  • 41
3 votes
1 answer
230 views

I have a parameter B in matrix format, defined in the model file as param B {Rn,Rn}; for which I define the non-sparse values as from numpy import random from scipy import sparse from amplpy ...
FooBar's user avatar
  • 16.7k

AltStyle によって変換されたページ (->オリジナル) /